Polymorphism

Q1: Which of the following statements is correct?

A Static methods can be a virtual method.

B Abstract methods can be a virtual method.

C It is necessary to override a virtual method.

D When overriding a method, the names and type signatures of the override method must be the same as the virtual method that is being overriden.

E We can override virtual as well as non-virtual methods.

ANS:D - When overriding a method, the names and type signatures of the override method must be the same as the virtual method that is being overriden.

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.