Next: Commentary
Up: Lecture 2: Classes, Objects,
Previous: Example Class: Class Car
- Invoice Class with attributes, their types, visibilities, default values and class-scope attribute (number of invoices). This last attribute has the same value for all object instances of Invoice class.
- Enumeration types may be used for attribute types (e.g.,
Status = {unpaid, paid}
in the attribute status).
Ananda Amatya
11/3/1999