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


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement