Answer the following statements true (T) or false (F)
1. An interface may not provide properties with Get and Set accessors.
2. A class that implements an interface may not act as a base class for other classes.
3. An interface reference may invoke only the methods that the interface declares.
4. To use an interface, a class must define only the methods in the interface that it will need to use.
5. An interface always should be used to specify data and services that will be provided by objects in a hierarchical relationship.
1. False. An interface may provide properties with Get and Set accessors.
2. False. A class that implements an interface may be inherited by derived classes.
3. True.
4. False. To use an interface a class must define all methods specified by the interface.
5. False. A MustInherit class should be used to specify data and services that will be provided by objects in a hierarchical relationship. An interface is used when there is no default implementation to inherit.
You might also like to view...
The most commonly used cloning option is the Current & Below option.
Answer the following statement true (T) or false (F)
Which of the following values of the background-attachment property keeps the image in place while the text scrolls over the image as the user scrolls down the page?
A. static B. positioned C. dynamic D. fixed
Safari is the Web browser software program that is included with Windows 10
Indicate whether the statement is true or false
Case EX 8-1Candace wants to create a chart sheet similar to the one shown above.Candace now has the Move Chart dialog box open and wants to name her new chart sheet. Where does she fill in the new name?
A. In the Move sheet box B. In the New object box C. In the New sheet box D. In the Move object box