Question: Which of the following statements is correct?

Options

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.

Click to view Correct Answer

Previous || Next

Polymorphism - General Questions more questions

Which of the following statements is correct?

Which of the following operators cannot be overloaded?

Which of the following modifier is used when a virtual....

In order for an instance of a derived class to....

Which of the following can be declared as a virtual....

Which of the following are necessary for Run-time Polymorphism?

A property can be declared inside a class, struct, Interface.

Which of the following statements is correct about properties used....

A Student class has a property called rollNo and stu....

If a class Student has an indexer, then which of....

Attributes - General Questions more Online Exam Quiz

Inheritance - General Questions

Interfaces - General Questions

Namespaces - General Questions

Operators - General Questions

Properties - General Questions

Structures - General Questions

Advanced SQL - General Questions

Data and Database Administration - General Questions

Database Design Using Normalization - General Questions