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

1) It’s possible to treat base-class objects and derived-class objects similarly.
2) All methods in an abstract class must be declared as abstract methods.
3) Attempting to invoke a derived-class-only method through a base-class variable is an error.
4) If a base class declares an abstract method, a derived class must implement that method.
5) An object of a class that implements an interface may be thought of as an object of that
interface type.


1) True.
2) False. An abstract class can include methods with implementations and abstract
methods.
3) True.
4) False. Only a concrete derived class must implement the method.
5) True.

Computer Science & Information Technology

You might also like to view...

What is the printout of the following code?

``` #include using namespace std; class C { public: string toString() { return "C"; } }; class B: public C { string toString() { return "B"; } }; class A: public B { virtual string toString() { return "A"; } }; void displayObject(C *p) { cout << p->toString(); } int main() { displayObject(&A()); displayObject(&B()); displayObject(&C()); return 0; } ``` . BBB b. CBA c. CCC d. AAA e. ABC

Computer Science & Information Technology

Match the following keystrokes with how they are used in Edit Mode on datasheets and forms

I. $$$Home$$$ II. $$$End$$$ III. $$$Enter$$$ IV. $$$Ctrl$$$ + $$$Home$$$ V. $$$Ctrl$$$ + $$$End$$$ A. Moves to the first character in the field B. Switch to Navigation mode and move from field to field C. Moves to the last character in the field D. Moves to the last character in the field E. Moves to the first character in the field

Computer Science & Information Technology

____________________ cells involves creating a single cell by combining two or more selected cells.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A(n) ____ is a data type that separates the logical properties from the implementation details.

A. public B. protected C. private D. abstract data type

Computer Science & Information Technology