Advertisement
lomdim

Untitled

Apr 25th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 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. class Ambulance : Vehicle //אצל חנה לשנות לBUS
  10. {
  11. private ConsoleColor color;
  12.  
  13. public Ambulance(ConsoleColor c, int rishuy, GazType gaz_type):base(rishuy,gaz_type)
  14. {
  15. color = c;
  16.  
  17. }
  18.  
  19. public void Paint(ConsoleColor c)
  20. {
  21. color = c;
  22. }
  23. public override void Print()
  24. {
  25. Console.ForegroundColor = ConsoleColor.Red;
  26. Console.WriteLine("Vehicle # {0}", Rishuy);
  27. Console.WriteLine("Ride on {0}", Gaz_type);
  28. Console.WriteLine("Ride on {0}", color);
  29. Console.ForegroundColor = ConsoleColor.White;
  30. }
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement