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
- {
- public enum GazType
- {
- COOKING_GAZ,
- SOLER,
- BENZIN
- }
- class Vehicle
- {
- private int rishuy;
- private GazType gaz_type;
- public Vehicle(int rishuy,GazType gaz_type)
- {
- this.rishuy = rishuy;
- this.gaz_type = gaz_type;
- }
- public int Rishuy
- {
- get { return rishuy; }
- //set { rishuy = value; }
- }
- public GazType Gaz_type
- {
- get { return gaz_type; }
- //set { gaz_type = value; }
- }
- public virtual void Print()
- {
- Console.WriteLine("Vehicle # {0}",rishuy);
- Console.WriteLine("Ride on {0}",gaz_type);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement