13 lines
248 B
C#
13 lines
248 B
C#
namespace OOP
|
|
{
|
|
public class Vehicle
|
|
{
|
|
public string Brand { get; set; }
|
|
public int MaxSpeed { get; set; }
|
|
|
|
public virtual void Drive()
|
|
{
|
|
Console.WriteLine("Vehicle is moving.");
|
|
}
|
|
}
|
|
} |