Lecture 2

We finished up the definition of the card classes from last class and discussed briefly the following simpler examples.

Ratio: A class representing fractions.

LottoHelper: A class illustrating the use of the class Random to choose Lotto numbers.

We also discussed how objects are represented by references and how assignment and parameter passing works in Java (essentially both result in sharing of references).