Sail E0 Webinar
Question

Consider the following class definitions:
class a
{
};


class b: protected a
{
};


What happens when we try to compile this class?


Options:
A .  Will not compile because class body of a is not defined.
B .  Will not compile because class body of b is not defined.
C .  Will not compile because class a is not public inherited.
D .  Will compile successfully.
Answer: Option D




Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers