Which of the following statement is correct if a class inherits another class publically?
Options
- Public members of the base class will be private members of derived class.
- Public members of the base class will be protected members of derived class.
- Public members of the base class will be public members of derived class.
- Private members of the base class will be protected members of derived class.
CORRECT ANSWER : Public members of the base class will be public members of derived class.
Write your comments