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.

Click to view Correct Answer

Exam Quiz App on Google Play

Next

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

Unix - Part 1

Windows 2000 Server - Part 1

Windows NT - Part 1

Constructors and Destructors - General Questions

Functions - General Questions

OOPS Concepts - General Questions

References - General Questions

Arrays - General Questions