If a function declared as abstract in base class doesn’t have to be defined in derived class then ______

Ivanesn

New member
If a function declared as abstract in base class doesn’t have to be defined in derived class then ______
A. Derived class must define the function anyhow
B. Derived class should be made abstract class
C. Derived class should not derive from that base class
D. Derived class should not use that function
 
Answer: b
Explanation: If the function that is not to be defined in derived class but is declared as abstract in base class then the derived class must be made an abstract class. This will make the concept mandatory that the derived class must have one subclass to define that method.
 

Tìm kiếm

Back
Top