Basic HTML version of Foils prepared
Sept 21 1998
Foil 27 Use of Methods Defined in Parent but overridden in child class
From
Java Tutorial 98- 2: Java Language and Object Oriented Techniques NAVO Tutorial --
Sept 23 1998
.
by
Geoffrey C. Fox, Nancy McCracken
This algorithm also works for the case when the method is overridden
Class:
method A
Definition of method
is given in parent
Class:
Class:
method A
Class:
Class:
Object2
Object1
Object1 creates object2
and calls object2.A
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Sat Nov 28 1998