Home » C++ Programming » Objects and Classes

What happens when we try to compile the class definition in following code snippet? class Birds {}; class Peacock : protected Birds {};

Correct Answer: It will compile succesfully.

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion