Answer the following statements true (T) or false (F)
1. Attempting to instantiate an object of an abstract class is a logic error.
2. All objects of a class are guaranteed to provide the functionality described by any interface that the class implements.
3. An interface describes a set of methods that can be called on an object and it provides concrete implementations for the methods.
4. Objects of unrelated classes that implement the same interface can respond to the method calls of that interface polymorphically.
5. If a class leaves one method in an interface undeclared, the class is implicitly declared by Visual Basic as a MustInherit class.
1. False. This is a compilation error.
2. True.
3. False. An interface describes a set of methods that can be called on an object but it does not provide concrete implementations for the methods.
4. True.
5. False. A class that leaves one method in an interface undeclared must explicitly be declared MustInherit in the first line of its class declaration.
You might also like to view...
A ________ lists which tables hold the fields used in the SELECT clause
A) FROM clause B) WHERE clause C) JOIN clause D) UNION clause
What is wrong with the following code?
float scores[10], total; a. Cannot declare regular and array variables together. b. Arrays must be integers c. The 10 should be replaced with a variable name, whose value is input from the user d. Nothing.