Exam 10: Object-Oriented Programming: Inheritance

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

A class with MustOverride methods does not necessarily have to be a MustInherit class.

(True/False)
4.8/5
(34)

A method must be declared __________ for it to be overridden by derived classes.

(Multiple Choice)
4.8/5
(40)

With Protected instance variables in the base class,all the derived classes of the base class may need to be modified if the base-class implementation changes.In such a case,the software is said to be non-modifiable,because a small change in the base class can "break" derived-class implementations.

(True/False)
4.8/5
(32)

Interfaces can have__________ methods.

(Multiple Choice)
4.9/5
(32)

In practice,derived classes should depend only on the base-class services (that is,Private methods and properties)and not on the base-class data implementation.

(True/False)
4.9/5
(37)

An interface reference may invoke only the methods that the interface declares.

(True/False)
4.8/5
(38)

Which of the following statements about MustInherit base classes is true?

(Multiple Choice)
4.9/5
(33)

Objects of unrelated classes that implement the same interface can respond to the method calls of that interface polymorphically.

(True/False)
4.9/5
(33)

Base class methods with this level of access cannot be called from derived classes.

(Multiple Choice)
4.9/5
(35)

The first task of any base class's constructor is to call its derived class's constructor.

(True/False)
4.9/5
(39)

To avoid duplicating code (and possibly errors),use ________,rather than ________.

(Multiple Choice)
4.7/5
(27)

A derived class can add its own instance variables,Shared variables,properties and methods,and it can customize methods and properties it inherits.

(True/False)
4.9/5
(31)

Polymorphism allows you to command a wide variety of objects of types related by inheritance as long as you know the objects' types.

(True/False)
4.8/5
(38)

When a derived-class member overrides a base-class member,the base-class member can be accessed from the derived-class by using the Visual Basic keyword .

(Multiple Choice)
4.7/5
(35)

When creating a class,rather than declaring completely new members,you can designate that the new class inherits the members of an existing class.The existing class is called the __________ class,and the new class is the __________ class.

(Multiple Choice)
4.8/5
(35)

An interface is defined with keyword _________.

(Multiple Choice)
4.8/5
(32)

How can a derived class constructor ccall a base class constructor?

(Multiple Choice)
4.8/5
(31)

Concrete classes provide implementations for at least one of the methods and properties they define.

(True/False)
5.0/5
(39)

Which of the following does not complete the sentence correctly? An interface _____________.

(Multiple Choice)
4.9/5
(21)

The UML distinguishes an interface from other classes by placing the word "interface" in__________ above the interface name.

(Multiple Choice)
4.9/5
(43)
Showing 41 - 60 of 82
close modal

Filters

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