Sample Question 4

17 views
Skip to first unread message

Jono

unread,
Apr 26, 2011, 12:16:50 AM4/26/11
to UBC CPSC 210
How do you "specify class invariants"? Is is just in the
documentation? Or is is somewhere else?

Paul Carter

unread,
Apr 26, 2011, 2:39:38 AM4/26/11
to ubc-cp...@googlegroups.com
Class invariants are specified in the documentation, usually at the start of the class declaration.

See the Traffic Light problem that we did in class for an example.

Paul

Reply all
Reply to author
Forward
0 new messages