Advertisement
kurec

Untitled

Apr 13th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 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 ConsoleApp1
  8. {
  9. class Car
  10. {
  11. private string model;
  12. private double kg;
  13. private string color;
  14. private string modelID;
  15.  
  16. public String Model
  17. {
  18. set { this.model = value; }
  19. get { return this.model; }
  20. }
  21.  
  22. public Double Kg
  23. {
  24. set { this.kg = value; }
  25. get { return this.kg; }
  26. }
  27.  
  28. public String Color
  29. {
  30. set { this.color = value; }
  31. get { return this.color; }
  32. }
  33.  
  34. public String ModelID
  35. {
  36. set { this.modelID = value; }
  37. get { return this.modelID; }
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement