Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace simester_b_1
- {
- class Ambulance : Vehicle //אצל חנה לשנות לBUS
- {
- private ConsoleColor color;
- public Ambulance(ConsoleColor c, int rishuy, GazType gaz_type):base(rishuy,gaz_type)
- {
- color = c;
- }
- public void Paint(ConsoleColor c)
- {
- color = c;
- }
- public override void Print()
- {
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("Vehicle # {0}", Rishuy);
- Console.WriteLine("Ride on {0}", Gaz_type);
- Console.WriteLine("Ride on {0}", color);
- Console.ForegroundColor = ConsoleColor.White;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement