Abstract Class A Has 4 Virtual Functions Abstract Class B #395
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.
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 OOps Classes - Object Oriented Programming MCQ: Abstract Class - Quiz No.1.
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.
Program won’t run as all the methods are not defined by B
Program won’t run as C is not inheriting A directly
Program won’t run as multiple inheritance is used
Program runs correctly