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 member functions of class A. Choose the correct option below

0

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.


  1. Program won’t run as all the methods are not defined by B
  2. Program won’t run as C is not inheriting A directly
  3. Program won’t run as multiple inheritance is used
  4. Program runs correctly

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(d).Program runs correctly

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Abstract classes can ____________________ instance... >>
<< If a class is extending/inheriting another abstrac...