Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(TCO 3) What is/are the reason(s) to use inheritance? Introducing modularity into program All of the above Reusing design Labor division (TCO 3) In object-oriented

(TCO 3) What is/are the reason(s) to use inheritance?

Introducing modularity into program
All of the above
Reusing design
Labor division

(TCO 3) In object-oriented programming, inheritance is transitive; that means a child class _____.

does not inherit any methods or fields
inherits only from its parent class
inherits only selected methods and fields
inherits all the methods and fields of all its ancestors

From most protection to least, the order of access modifiers is

private, protected, public
private, public, protected
protected, public, private
protected, private, public

(TCO 4) Which of the following refers to a class that inherits from a parent class?

Child classes
Subclass classes
Derived classes
All of the above

(TCO 6) The whole list of parent classes from which a child class is derived constitutes the _____ of the child class

ancestors
role
subset
family

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions