/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Free solutions & answers for Starting Out With C++: From Control Structures through Objects Chapter 15 - (Page 2) [step by step] | 91Ó°ÊÓ

91Ó°ÊÓ

Problem 11

What base class is named in the line below? class Pet : public Dog

Problem 12

What is the class access specification of the base class named below? class Pet : public Dog

Problem 13

What is the class access specification of the base class named below? class Pet : public Dog

Problem 14

What is the class access specification of the base class named below? class Pet : Fish

Problem 15

Protected members of a base class are like ________ members, except they may be accessed by derived classes.

Problem 17

Complete the table below by filling in private, protected, public, or inaccessible in the right-hand column: $$\begin{array}{ll} \hline \text { In a protected base class, this base class } & \ldots \text { becomes this access specification in } \\ \text { MEMBER access specification... } & \text { the derived class. } \\ \hline \text { private } & & \\ \text { protected } & & \\ \text { public } & & \\ \hline \end{array}$$

Problem 18

Complete the table below by filling in private, protected, public, or inaccessible in the right-hand column: $$\begin{array}{ll} \hline \text { In a public base class, this base class } & \ldots \text { becomes this access specification in } \\ \text { MEMBER access specification... } & \text { the derived class. } \\ \hline \text { private } & & \\ \text { protected } & & \\ \text { public } & & \\ \hline \end{array}$$

Problem 19

A derived class inherits the ______of its base class.

Problem 20

When both a base class and a derived class have constructors, the base class's constructor is called _______ (first/last).

Problem 21

When both a base class and a derived class have destructors, the base class's constructor is called _______ (first/last).

Access millions of textbook solutions in one place

  • Access over 3 million high quality textbook solutions
  • Access our popular flashcard, quiz, mock-exam and notes features
  • Access our smart AI features to upgrade your learning
Access millions of textbook solutions in one place

Recommended explanations on Computer Science Textbooks