c# warning CS0108 code example
Example: c# warning CS0108
//warning CS0108
class Bicycle : Vehicle //Subclass
{
public override void SpeedUp() //Add 'override'
{
Speed += 5;
}
}
//error CS0506
class Vehicle //Superclass
{
public virtual void SpeedUp() //Add 'virtual'
{
Speed += 5;
}
}