Implementing Objects
This section is based on parts 11 and 12 of the notes,
Return to Drinks Machines and
Implementing ArrayLists
Practical exercises supporting this section are in
Exercise sheet 5.
When you have completed this section you should be able to:
- Appreciate the distinction between the application and the implementation
of an object
- Understand the role and scope of variables in object states
- Write object constructors
- Write non-static methods
- Write Java classes which have a type parameter
- Understand how a data structure in an object implements an abstract
data type
- Use the array and count data structure to implement the concept of
an array-like object with flexible length
Matthew Huntbach
Last modified: 29 June 2006