Adding assignments
This commit is contained in:
13
Vehicles/Vehicle.cs
Normal file
13
Vehicles/Vehicle.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace OOP
|
||||
{
|
||||
public class Vehicle
|
||||
{
|
||||
public string Brand { get; set; }
|
||||
public int MaxSpeed { get; set; }
|
||||
|
||||
public virtual void Drive()
|
||||
{
|
||||
Console.WriteLine("Vehicle is moving.");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user