Question: TRUE OR FALSE 1. To implement an interface, a class must provide an implementation of every member in the interface. (a) True (b) False 2.

TRUE OR FALSE

1. To implement an interface, a class must provide an implementation of every member in the interface.

(a) True (b) False

2. To declare a get accessor for a property in an interface, you code "get".

(a) True (b) False

3. Write the declaration for a class named Book that implements the ICloneable and IDisplayable interfaces: public class Book : ICloneable, IDisplayable

(a) True (b) False

4. The abstract methods and properties of a class do not provide an implementation.

(a) True (b) False

5. Concrete classes provide implementations for every method and property they define.

(a) True (b) False

6. An abstract class may be derived from another abstract class.

(a) True (b) False

7. Objects of abstract base classes can be instantiated.

(a) True (b) False

8. An abstract class cannot have instance data and non-abstract methods.

(a) True (b) False

9. A concrete class that implements an interface must define all methods and properties of that interface.

(a) True (b) False

10. An interface can not provide properties with get and set accessors.

(a) True (b) False

11. A class that implements an interface may not act as a base class for other classes.

(a) True (b) False

12. An interface reference may invoke only the methods that the interface declares.

(a) True (b) False

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!