1807Software EngineeringMedium
UML interfaces are used to________?
Adefine executable logic to reuse across classes
Bspecify required services for types of objects
Cprogram in Java, but not in C++ or Smalltalk
Ddefine an API for all classes
Correct answer
B. specify required services for types of objects
Explanation
Explanation: An interface is like a template design for a class that contains no data or implementation; only definitions for methods, properties etc