Question: What happens when we try to compile the class definition in following code snippet?
Options
A : It will not compile because class body of Birds is not defined.
B : It will not compile because class body of Peacock is not defined.
C : It will not compile because a class cannot be protectedly inherited from other class.
D : It will compile succesfully.
Objects and Classes - General Questions more questions
Which of the following statement is correct?
Which of the following statement is incorrect?
Which of the following statement is correct?
Which of the following function / types of function cannot....
Which of the following statement is correct?
Which of the following statements is incorrect?
Which of the following statement is correct regarding destructor of....
Which of the following two entities (reading from Left to....
How can we make a class abstract?
Which of the following statements is correct when a class....
Constructors and Destructors - General Questions more Online Exam Quiz
Constructors and Destructors - General Questions
OOPS Concepts - General Questions