Polymorphism

Q1: Which of the following statements is correct?

A Only one object can be created from an abstract class.

B By default methods are virtual.

C If a derived class does not provide its own version of virtual method then the one in the base class is used.

D If the method in the derived class is not preceded by override keywords, the compiler will issue a warning and the method will behave as if the override keyword were present.

E Each derived class does not have its own version of a virtual method.

ANS:C - If a derived class does not provide its own version of virtual method then the one in the base class is used.

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.