adplus-dvertising
frame-decoration

Question

What are the three compartments of a class in a class diagram?

a.

The name of the class, list of responsibilities and list of operations

b.

The name of the class, list of responsibilities and list of attributes

c.

The name of the class, list of attributes and list of operations

d.

The name of the class, list of attributes and list of behaviors

Answer: (c).The name of the class, list of attributes and list of operations Explanation:The class is depicted as a rectangle with three compartments, containing the name of the class, list of attributes, and list of operations, from top to bottom.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What are the three compartments of a class in a class diagram?