Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace שיעור
  8. {
  9. class CD
  10. {
  11. private string name;
  12. private string singer;
  13. private double length;
  14.  
  15. public void cd(string name, string singer, double length)
  16. {
  17. this.name=name;
  18. this.singer = singer;
  19. this.length = length;
  20. }
  21. public void Set_Name(string name)
  22. {
  23. this.name = name;
  24. }
  25. public void Set_Singer(string singer)
  26. {
  27. this.singer = singer;
  28. }
  29. public void Set_Length(double length)
  30. {
  31. this.length = length;
  32. }
  33. public string Get_Name()
  34. {
  35. return this.name;
  36. }
  37. public string Get_Singer()
  38. {
  39. return this.singer;
  40. }
  41. public double Get_Length()
  42. {
  43. return this.length;
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement