Answer the following statements true (T) or false (F)
1. An interface reference may invoke only the methods that the interface declares.
2. To use an interface, a class must define only the methods in the interface that it will need to use.
3. An interface always should be used to specify data and services that will be provided by objects in a hierarchical relationship.
4. A class may implement only one interface.
5. A derived class can add its own instance variables, Shared variables, properties and methods, and it can customize methods and properties it inherits.
1. True
2. False. To use an interface a class must define all methods specified by the interface.
3. 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.
4. False.
5. True.
You might also like to view...
What is the value of char (int (ācā) + 3)?
What will be an ideal response?
____ view allows you to look at several slides at one time.
A. Slide Sorter B. Slide Show C. Reading D. Review Sorter
Create an XML document and an XML Schema for the Hotel Schema given in the Exercises at the end of Chapter 4. Now attempt to write XQuery expressions for Exercises 6.7 ā 6.26.
6.7 List full details of all hotels. 6.8 List full details of all hotels in London. 6.10 List all double or family rooms with a price below Ā£40.00 per night, in ascending order of price. 6.12 How many hotels are there? 6.13 What is the average price of a room? 6.14 What is the total revenue per night from all double rooms? 6.15 How many different guests have made bookings for August? 6.16 List the price and type of all rooms at the Grosvenor Hotel. 6.17 List all guests currently staying at the Grosvenor Hotel. 6.22 List the number of rooms in each hotel. 6.23 List the number of rooms in each hotel in London.
The Status Bar Text property enables you to add descriptive text for a selected control that will display in the status bar
Indicate whether the statement is true or false