joannazhang13
Quiz by , created more than 1 year ago

An introduction to inheritance quiz!

4
0
0
joannazhang13
Created by joannazhang13 almost 9 years ago
Close

Let's see what you know

Question 1 of 6

1

The relationship between superclasses and subclasses is a Has-a relationship.

Select one of the following:

  • True
  • False

Explanation

Question 2 of 6

1

A subclass absorbs the state and behavior of the superclass

Select one of the following:

  • True
  • False

Explanation

Question 3 of 6

1

The is-a relationship is not transitive.

Select one of the following:

  • True
  • False

Explanation

Question 4 of 6

1

The superclass also inherits all characteristics of the subclass.

Select one of the following:

  • True
  • False

Explanation

Question 5 of 6

1

Inheritance is an effective method for code reuse.

Select one of the following:

  • True
  • False

Explanation

Question 6 of 6

1

A subclass can also be a superclass for another subclass

Select one of the following:

  • True
  • False

Explanation