adplus-dvertising
frame-decoration

Question

Abstract class A has 4 virtual functions. Abstract class B defines only 2 of those member functions as it extends class A. Class C extends class B and implements the other two member functions of class A. Choose the correct option below.

a.

Program won’t run as all the methods are not defined by B

b.

Program won’t run as C is not inheriting A directly

c.

Program won’t run as multiple inheritance is used

d.

Program runs correctly

Answer: (d).Program runs correctly

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Abstract class A has 4 virtual functions. Abstract class B defines only 2 of those member functions as it extends class A. Class C extends class B and implements the other two...

Similar Questions

Discover Related MCQs

Q. Abstract classes can ____________________ instances.

Q. We ___________________ to an abstract class.

Q. Which among the following is an important use of abstract classes?

Q. Use of pointers or reference to an abstract class gives rise to which among the following feature?

Q. The abstract classes in java can _________________

Q. Abstract class can’t be final in java.

Q. Can abstract classes have static methods (Java)?

Q. It is _________________________ to have an abstract method.

Q. How many abstract classes can a single program contain?

Q. Is it necessary that all the abstract methods must be defined from an abstract class?

Q. A template class can have _____________

Q. Which among the following is the proper syntax for the template class?

Q. Can default arguments be used with the template class?

Q. What is the syntax to use explicit class specialization?

Q. Which is the most significant feature that arises by using template classes?

Q. A template class defines the form of a class _____________________ it will operate.

Q. What are the two specializations of I/O template classes in C++?

Q. Can typeid() function be used with the object of generic classes?

Q. The _____________ class is a specialization of a more general template class.

Q. How is function overloading different from template class?