Multiple choice technology programming languages

which of the following is/are true about Polymorphism?

  1. Virtual keyword is used before Base class

  2. Override keyword is used before Derived class

  3. overload keyword is used before Derived class

  4. 1 & 2

  5. 1 & 3

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In C# polymorphism, the 'virtual' keyword is used in the base class to allow a method to be overridden, and the 'override' keyword is used in the derived class to provide the implementation. There is no 'overload' keyword - method overloading is achieved by having multiple methods with the same name but different parameters.