Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

When a base class is inherited as public by the derived class, what happens to its public members?What happens to its private members? If...

When a base class is inherited as public by the derived class, what happens to its public members?What happens to its private members? If the base is inherited as private by the derived class, what happens to its public and private members in computer programming?

Answers


Davis
When a base class is inherited as public, the public members of the base becomes public members of the derived class, and the base's private member remains private to the base .If the base is inherited as private , all members of the base becomes private members of the derived class.
Githiari answered the question on February 5, 2018 at 08:24

Answer Attachments

Exams With Marking Schemes

Related Questions