Consider the following code definition

1.8 Consider the following code definition:
class Person
class Student: protected Person
What happens when we try to compile this class?
A) Will not compile class body of Person is not defined
B) Will not compile because of Student is not defined
C) Will compile successfully
D) Will not compile because class Person is not public inherited.

Leave a Reply