PPT Slide
We discussed several concepts concerning a classes:
- Definition of a class, including fields and methods,
- Declaration of a class variable,
- Creation of a new instance of a class and storing it in a class variable.
- Referencing and assigning to a field of a class.
- Assigning a class instance to a class variable, thus creating an alias.
- Class methods (procedures and functions)
We have looked only at the mechanics; we haven’t spend much time on using these things. That will come later. For now, it’s imperative that you learn the mechanics.
The demonstrations using CodeWarrior on the Mac should help provide some perspective.