Junior OOP

What is the use of the virtual and override keywords?

  • virtual → Marks a base class method as overridable.
  • override → Overrides a virtual method in the derived class.

More from C# Programming Tutorial

All questions for this course