[ Contact ] [ Links ] [ Previous : 12 / 29 : Control Statements ] [ Up ] [ Next : 14 / 29 : What you will need... ]

Others Java Subjects

new create a new object from a class. It allocates memory and call the adequate constructor method of the class to initialise field values.

Let the students talk ...
This : the object instance of a class (constructors)
super : the parent class

final : method can't be overwritten, class can not be subclassed
static : a class thing. No object instance is needed.

This week exercise

public : accessible anywhere
private : member accessible only within the class that defines it
protected : member accessible only within package and within subclasses.

A way to deal with things that should not happen (better than the if then else)
Each time there is an input from outside of the program

abstract : a method implementation is missing somewhere

We now know enough to write a simple example.


See the "Links" link above to find out the sources of the proposed informations
Pascal Vuylsteker / eScience / Computer Science / ANU
Last modified: 20/4/2004
TOC - Print
Send your comments at :
<Hugh.Fisher@anu.edu.au>