Answer the following statements true (T) or false (F)

1. The Protected members of a base class may be accessed in their class or any classes derived from that base class.
2. 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.
3. 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.
4. Polymorphism allows the addition of classes providing they were at least considered during program development.
5. 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.
2. False. In such a case, the software is said to be brittle.
3. False. In practice, derived classes should depend only on the base-class services (that is,
non-Private methods and properties) and not on the base-class data implementation.
4. False. Polymorphism can be used to include classes that were not even envisioned during
program development.
5.True.

Computer Science & Information Technology

You might also like to view...

A ____ is a container that stores the projects and files for an entire application.

A. user interface B. program environment C. solution D. program

Computer Science & Information Technology

An array with m rows and n columns is not ________.

A. an m-by-n array. B. an n-by-m array. C. a two-dimensional array. D. a dual-transcripted array. a. A and C. b. A and D. c. B and D. d. B and C.

Computer Science & Information Technology

Match the following terms and definitions related to creating a document:

I. Insertion point II. Word wrap III. Hard return IV. Nonprinting characters V. Soft return A. Automatically pushes words to the next line at the right margin B. Represent keystrokes such as Tab, Enter, or Space C. Created when Word wraps text from one line to the next D. Indicates the position where text will be placed when typed E. Created when you press Enter at the end of a line or paragraph

Computer Science & Information Technology

SSL will guarantee secure data.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology