Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4.  
  5. namespace _8_CarSalesman
  6. {
  7. public class Car
  8. {
  9. private string model;
  10. private Engine engine;
  11. private string weight = "n/a";
  12. private string color = "n/a";
  13.  
  14. public string Model { get => model; set => model = value; }
  15. public Engine Engine { get => engine; set => engine = value; }
  16. public string Weight { get => weight; set => weight = value; }
  17. public string Color { get => color; set => color = value; }
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement