+1 vote
in Software Architecture by (75.2k points)
What is Class Invariant?

(a) A class invariant is an assertion that must be true of any class instance between calls of its exported operations

(b) Class invariants must be established by class constructors

(c) Class invariants must be preserved by every exported operation in the class

(d) All of the mentioned

The question was posed to me in final exam.

The origin of the question is Operation Specification in section Visibility, Accessibility and Information Hiding of Software Architecture

1 Answer

0 votes
by (46.2k points)
Right option is (d) All of the mentioned

Easiest explanation: All of the mentioned depicts class invariant.

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...