Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace שיעור
- {
- class CD
- {
- private string name;
- private string singer;
- private double length;
- public void cd(string name, string singer, double length)
- {
- this.name=name;
- this.singer = singer;
- this.length = length;
- }
- public void Set_Name(string name)
- {
- this.name = name;
- }
- public void Set_Singer(string singer)
- {
- this.singer = singer;
- }
- public void Set_Length(double length)
- {
- this.length = length;
- }
- public string Get_Name()
- {
- return this.name;
- }
- public string Get_Singer()
- {
- return this.singer;
- }
- public double Get_Length()
- {
- return this.length;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement