Polymorphism

Q1:
Which of the following are necessary for Run-time Polymorphism?
  1. The overridden base method must be virtual, abstract or override.
  2. Both the override method and the virtual method must have the same access level modifier.
  3. An override declaration can change the accessibility of the virtual method.
  4. An abstract inherited property cannot be overridden in a derived class.
  5. An abstract method is implicitly a virtual method.

A 1, 3

B 1, 2, 5

C 2, 3, 4

D 4 only

ANS:B - 1, 2, 5

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.