Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. A derived class also can be called a ___________class. 2. Parent class is to

ID: 3545919 • Letter: 1

Question

1.      A derived class also can be called a ___________class.

2.      Parent class is to child class as _____________.

3.      Which of the following is not an advantage of inheritance?

4.      Which of the following pairs of class names is most likely to represent a parent/child relationship?

5.      The most commonly used inheritance access specifier is _________________.

6.      To indicate that class X is a child of class Y, and that inheritance is public, the class declaration is _____________.

7.      If a field named someField is private in the parent class, and a child class inherits with public access, then within the child class someField is ______________.

8.      If a field named someField is public in the parent class, and a child class inherits with public access, then within the child class someField is ________________.

9.      If a member of a base class named Base is protected, then it can be used in methods that are __________________.

10.  Within a class that serves as a parent class, _______________.

11.  Class A contains a void public methods named functionA() that requires an integer argument. Class B derives from Class A, and also contains a void public method named functionA() that requires an integer argument. An object of the class A can use _______.

Explanation / Answer

1.A derived class also can be called a ___________class.

2.Parent class is to child class as _____________.

3.Which of the following is not an advantage of inheritance?

4. Which of the following pairs of class names is most likely to represent a parent/child relationship?

5.The most commonly used inheritance access specifier is _________________.

6. To indicate that class X is a child of class Y, and that inheritance is public, the class declaration is _____________.

7. If a field named someField is private in the parent class, and a child class inherits with public access, then within the child class someField is ______________.

8. If a field named someField is public in the parent class, and a child class inherits with public access, then within the child class someField is ________________.

9. If a member of a base class named Base is protected, then it can be used in methods that are __________________.

10. Within a class that serves as a parent class, _______________.

11. Class A contains a void public methods named functionA() that requires an integer argument. Class B derives from Class A, and also contains a void public method named functionA() that requires an integer argument. An object of the class A can use _______.