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.

Computer Science & Information Technology

You might also like to view...

Joins are created between a(n) ________ that exists in both tables

Fill in the blank(s) with correct word

Computer Science & Information Technology

When you export a presentation to a Word outline, slide titles are formatted with the Heading 1 style and bulleted text is formatted with the Heading 2 style

Indicate whether the statement is true or false

Computer Science & Information Technology