Computer Science 1
Top Lectures Assignments Noticeboard

Class Design, Part III

Reading: Ch. 5.4.12 - 5.6

Using ints in a class/program (contd.)

Using the Shop class

Summary of ints

 
Reference variable Primitive data variable
Type defined by Class definition Language
Value created by new available through underlying hardware
Value initialized by constructor as above
Variable initialized by Assignment of reference value Assignment of primitive data value
Variable contains Reference to object Primitive value
Used with Messages Operator symbols
Can appear as a receiver yes no
 

The double type - overview


Last modified: 2/15/99