1.

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 classesI have been asked this question during an internship interview.Query is from Unified Modelling Language topic in division Design and Implementation of Software Engineering

Answer»

Correct CHOICE is (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.



Discussion

No Comment Found

Related InterviewSolutions