inheritances

Hello
i am studying now inheritances and i want to understand what the difference between
1)if a base person was created as private in H file .but the inheritance declared as this

class student:public person.
class student:protected person.
class student: person.

2)if a base person was created as public in H file .but the inheritance declared as this
class student:public person.
class student:protected person.
class student: person.

3)if a base person was created as protected in H file .but the inheritance declared as this

class student:public person.
class student:protected person.
class student: person.


Thank you!!!!

Why don't you test it yourself? There are just 9 combinations.
@iliya24

Hello
i am studying now inheritances and i want to understand what the difference between
1)if a base person was created as private in H file .but the inheritance declared as this


Could you show how the base class person "was created" as private in "H file"?
Topic archived. No new replies allowed.