static void Main(string[] args) { Maruti obj1 = new Maruti("abc", "petrol", "123"); Mahindra obj2 = new Mahindra("pqr", "disel", "456"); Console.ReadKey(); }
static void Main(string[] args) { // Car car = new Car(); Maruti maruti = new Maruti("petrol", "1", "maruti"); Mahindra mahindra = new Mahindra("diesel", "2", "mahindra"); Console.ReadKey(); }