Exam 11: Inheritance

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

One problem with using a UML diagram is that there is no way to indicate inheritance.

Free
(True/False)
4.9/5
(35)
Correct Answer:
Verified

False

In the following line of code,what is the name of the base class? Class Python(Course):

Free
(Multiple Choice)
4.8/5
(45)
Correct Answer:
Verified

B

In an inheritance relationship,a minivan can be thought of as a(n)___________ of the vehicles class.

Free
(Short Answer)
4.7/5
(39)
Correct Answer:
Verified

subclass,derived class

Which of the following is the correct syntax for defining a class,table,which inherits from the furniture class?

(Multiple Choice)
4.8/5
(32)

When a class inherits another class,it is required to use all the data attributes and methods of the superclass.

(True/False)
4.9/5
(28)

The term ___________ refers to an object's ability to take different forms.

(Short Answer)
4.8/5
(40)

__________ has the ability to define a method in a subclass and then define a method with the same name in a superclass.

(Multiple Choice)
4.9/5
(45)

When there are several classes that have many common data attributes,it is better to write a(n)__________ to hold all the general data.

(Multiple Choice)
4.8/5
(36)

What does a subclass inherit from a superclass?

(Multiple Choice)
4.8/5
(42)

An "is a" relationship exists between a wrench and a tool.

(True/False)
4.9/5
(37)

A subclass may not override any method other than the __init__ method.

(True/False)
4.7/5
(42)

Given the following beginning of a class definition for a superclass named clock,how many accessor and mutator methods will be needed to complete the class definition? Given the following beginning of a class definition for a superclass named clock,how many accessor and mutator methods will be needed to complete the class definition?

(Multiple Choice)
4.9/5
(38)

In a UML diagram,what does the open arrowhead point to?

(Multiple Choice)
4.8/5
(29)

A superclass is also called a(n)__________ class.

(Short Answer)
4.9/5
(39)

Base classes are also called

(Multiple Choice)
4.8/5
(42)

Which method can you use to determine whether an object is an instance of a class?

(Multiple Choice)
4.9/5
(35)

New attributes and methods may be added to a subclass which makes it a(n)__________ version of the superclass.

(Short Answer)
4.8/5
(34)

The __________ function determines whether or not an object is an instance of a specific class or an instance of a subclass of that class.

(Short Answer)
4.9/5
(43)

In an inheritance relationship,the extended class is called the __________.

(Short Answer)
4.9/5
(41)

In a UML diagram depicting inheritance,you only need to write the name of the subclass.

(True/False)
4.9/5
(28)
Showing 1 - 20 of 36
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)