Question: Name: After reading chapter 1 1 , answer the following questions and submit your answers to the assignment page. ( Inheritance Advanced - Section 1

Name:
After reading chapter 11, answer the following questions and submit your answers to the assignment page.
(Inheritance Advanced - Section 11.4 and after reading the chapter) Discuss the ways in which inheritance saves time during program development and helps prevent errors.
(Protected vs Private Base Classes - Section 11.5) Some programmers prefer not to use protected access because they believe it breaks the encapsulation of the base class. Discuss the relative merits of using protected access vs. using private access in base classes. If you don't use protected access, how would you be able to modify the data members of the base class?
In section 11.2(Base Classes and Derived Classes), the book list some examples of what objects could be base classes and the derived classes by creating a table of 5 items (Fig.11.1 Inheritance examples). List 5 different bases classes and possible derived classes that are not from the examples from the book.
Base Class
Derived classes
\table[[,]]
\table[[,]]
Create 2 class hierarchy diagram from any of the 5 base class and derived classes from question number 3.
Name: After reading chapter 1 1 , answer the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!