Exam 10: Object-Oriented Programming: Inheritance

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

Private fields of a base class can be accessed in a derived class

(Multiple Choice)
4.7/5
(35)

When a program creates a derived-class object,the Object constructor is the last constructor called and the first whose body finishes executing.

(True/False)
4.9/5
(35)

Declaring an interface Protected allows for extra security precautions.

(True/False)
4.7/5
(32)

Which is used to specify that a class will be implementing an interface?

(Multiple Choice)
4.8/5
(34)

When a derived class constructor calls its base class constructor,what happens if the base class's constructor does not assign a value to one of its instance variables?

(Multiple Choice)
4.8/5
(41)

An interface is typically used in place of a MustInherit class when there is no default implementation to inherit.

(True/False)
4.8/5
(28)

Objects of abstract base classes can be instantiated.

(True/False)
4.8/5
(27)

The _________ keyword is used to define methods within a MustInherit class that must be implemented in a derived class for that derived class to be concrete.

(Multiple Choice)
4.9/5
(29)

Polymorphism allows the addition of classes providing they were at least considered during program development.

(True/False)
4.8/5
(29)

A class may implement only one interface.

(True/False)
4.7/5
(38)

The ________ keyword is used to create an abstract class.

(Multiple Choice)
4.8/5
(37)

Consider the classes below: Consider the classes below:   Which of the statements below is false? Which of the statements below is false?

(Multiple Choice)
5.0/5
(30)

The purpose of an interface is to:

(Multiple Choice)
4.9/5
(35)

An interface always should be used to specify data and services that will be provided by objects in a hierarchical relationship.

(True/False)
4.9/5
(40)

The Protected members of a base class may be accessed in their class or any classes derived from that base class.

(True/False)
4.8/5
(40)

If a class leaves one method in an interface undeclared,the class is implicitly declared by Visual Basic as a MustInherit class.

(True/False)
4.7/5
(31)

When a request is made to use a derived-class-object method through a base-class reference,Visual Basic polymorphically chooses the correct overridden method in the derived class that is associated with the object.

(True/False)
4.9/5
(35)

A class that implements an interface must define all methods and properties of that interface.

(True/False)
4.8/5
(26)

All classes in Visual Basic have Object as either a direct or indirect base class.

(True/False)
4.8/5
(36)

When a base class method is overridden in a derived class,it is common to have the derived class version call the base class version and then do some additional work.

(True/False)
4.9/5
(39)
Showing 61 - 80 of 82
close modal

Filters

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