Adding assignments
This commit is contained in:
12
Vehicles/Car.cs
Normal file
12
Vehicles/Car.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace OOP
|
||||
{
|
||||
public class Car : Vehicle
|
||||
{
|
||||
public int NumberOfDoors { get; set; }
|
||||
|
||||
public override void Drive()
|
||||
{
|
||||
Console.WriteLine("The car is driving");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user