kurec

Untitled

Apr 13th, 2019
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 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 Engine
  10. {
  11. private string model;
  12. private double power, displacement;
  13. private string efficiency;
  14. public String Model
  15. {
  16. set { this.model = value; }
  17. get { return this.model; }
  18. }
  19.  
  20. public Double Power
  21. {
  22. set { this.power = value; }
  23. get { return this.power; }
  24. }
  25.  
  26. public Double Displacement
  27. {
  28. set { this.displacement = value; }
  29. get { return this.displacement; }
  30. }
  31.  
  32. public String Efficiency
  33. {
  34. set { this.efficiency = value; }
  35. get { return this.efficiency; }
  36. }
  37.  
  38. }
  39. }
Add Comment
Please, Sign In to add comment