adplus-dvertising
frame-decoration

Question

What is the purpose of interfaces in UML?

a.

To provide access to all the properties of a class

b.

To increase the robustness of a model by restricting access to properties needed

c.

To define different interfaces to different client classes

d.

To provide implementation for all its features

Posted under Software Engineering

Answer: (b).To increase the robustness of a model by restricting access to properties needed Explanation:Interfaces are a useful means to split the set of properties of a class into subsets, in case other classes only need access to subsets of those properties. They are often used to increase the robustness of a model, by restricting access to properties really needed.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the purpose of interfaces in UML?

Similar Questions

Discover Related MCQs

Q. What does the State Machine Diagram model?

Q. How is the classical finite state machine model extended when used to model the behavior of objects over time?

Q. What is the purpose of local variables in the extended finite state machine model?

Q. What is a state transition diagram used for in modeling an object's life cycle?

Q. How are local variables used in the extended finite state machine model?

Q. What triggers the initial transition in a finite state machine?

Q. What do input events do in a finite state machine?

Q. How are output actions associated with a finite state machine?

Q. What is the expressive power of Mealy and Moore machines?

Q. What is used to add structure to a finite state machine to make it less unwieldy?

Q. What is a statechart in UML modeling methods?

Q. What is a final (pseudo) state in UML state diagrams?

Q. What is the general form of a transition label in UML state diagrams?

Q. What is a stub in UML state diagrams?

Q. What type of interaction diagram is the Sequence Diagram?

Q. What is the purpose of the sequence diagram?

Q. What is the purpose of the horizontal dimension in a sequence diagram?

Q. What is the purpose of the vertical dimension in a sequence diagram?

Q. What is the purpose of the labels in the messages in a sequence diagram?

Q. What is an object in a sequence diagram represented as?