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

1. 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.
2. A base class’s method that’s overridden in a derived class will be executed implicitly when the derived class’s method is called.
3. The Protected members of a base class may be accessed in their class or any classes derived from that base class.
4. 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.
5. 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.


1. True.
2. False. Only constructors are executed implicitly in this fashion; a base-class method can
be executed explicitly by using the MyBase keyword.
3. True.
4. False. In such a case, the software is said to be brittle.
5. 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.

Computer Science & Information Technology

You might also like to view...

If Americans are objects of the same class, which of the following attributes would most likely be represented by a static variable of that class?

a. Age. b. The President. c. Place of birth. d. Favorite food.

Computer Science & Information Technology

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

1. In a program with a graphical user interface, all of the objects will be visible when the program starts. 2. An object must be created in memory before it can be used in a program. 3. You must use a class to define an object before it can be created in memory at runtime. 4. A class specifies the data an object can hold, but not the actions the object can perform.

Computer Science & Information Technology

Which of the following is used to perform offline servicing of WIM images?

A. WDS B. Package Manager C. Deployment Image Servicing and Management (DISM) D. Windows PE

Computer Science & Information Technology

When recording stereo audio, which channel is normally used for left, and which is normally used for right?

What will be an ideal response?

Computer Science & Information Technology