Answers for "c# warning CS0108"

C#
2

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;
      }
  }
Posted by: Guest on March-05-2020

C# Answers by Framework

Browse Popular Code Answers by Language