Q.

UML interfaces are used to:

A. specify required services for types of objects.
B. program in java, but not in c++ or smalltalk.
C. define executable logic to reuse across classes.
D. define an api for all classes.
Answer» A. specify required services for types of objects.
Explanation: an interface is like a template design for a class that contains no data or implementation; only definitions for methods, properties etc.
1.5k
0
Do you find this helpful?
1

Discussion

No comments yet