Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ 1. (TCO 3) Which of the following about composition is true? (Points : 2) Composition promotes code reuse. Class composition means a class contains

c++

1. (TCO 3) Which of the following about composition is true? (Points : 2)

Composition promotes code reuse. Class composition means a class contains objects from another class. Inheritance and composition can be used together. All of the above

Question 2. 2. (TCO 4) Select the false statement regarding inheritance. (Points : 2)
A child class can have more functionality than parent class. A child class can itself be parent class. Common functionality needs to be designed in the parent class. Parent classes are usually more specific child classes.

Question 3. 3. (TCO 4) Select the parent class. (Points : 2)
Manager Executive Person Staff

Question 4. 4. (TCO 4) Which of the following is not a good example of a hierarchy that could be modeled by inheritance? (Points : 2)
Airplanes Geometric shapes Animals Prime numbers

Question 5. 5. (TCO 4) Which of the following examples represent the "is-a" relationship in the parent/child format? (Points : 2)
person/employee person/student student/international student All of the above

Question 6. 6. (TCO 3) Which of the following are the benefits of composition? (Points : 2)
Systems can be tested independently. Systems can be built independently. Systems can be maintained independently. All of the above

Question 7. 7. (TCO 3) In object-oriented programming, inheritance is transitive; that means a child class _____. (Points : 2)
inherits only from its parent class inherits only selected methods and fields inherits all the methods and fields of all its ancestors does not inherit any methods or fields

Question 8. 8. (TCO 4) What inheritance mode is the most general one? (Points : 2)
Private Default Public Protected

Question 9. 9. (TCO 4) Composition is a means of allowing _____. (Points : 2)
reusability in object oriented programming objects to communicate identification of classes All of the above

Question 10. 10. (TCO 6) The whole list of parent classes from which a child class is derived constitutes the _____ of the child class (Points : 2)
family ancestors role subset

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle RMAN For Absolute Beginners

Authors: Darl Kuhn

1st Edition

1484207637, 9781484207635

More Books

Students also viewed these Databases questions