Advertisement
lomdim

Untitled

Apr 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 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 simester_b_1
  8. {
  9. public enum GazType
  10. {
  11. COOKING_GAZ,
  12. SOLER,
  13. BENZIN
  14. }
  15. class Vehicle
  16. {
  17. private int rishuy;
  18. private GazType gaz_type;
  19.  
  20. public Vehicle(int rishuy,GazType gaz_type)
  21. {
  22. this.rishuy = rishuy;
  23. this.gaz_type = gaz_type;
  24. }
  25.  
  26. public int Rishuy
  27. {
  28. get { return rishuy; }
  29. //set { rishuy = value; }
  30. }
  31.  
  32. public GazType Gaz_type
  33. {
  34. get { return gaz_type; }
  35. //set { gaz_type = value; }
  36. }
  37. public virtual void Print()
  38. {
  39. Console.WriteLine("Vehicle # {0}",rishuy);
  40. Console.WriteLine("Ride on {0}",gaz_type);
  41. }
  42. }
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement