Basic HTML version of Foils prepared Sept 6 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 CPS606 Fall Semester 1999 -- Sept 7 1999. by Geoffrey C. Fox, Nancy McCracken


1 This algorithm also works for the case when the method is overridden
2 Class:
3 method A
4 Definition of method
5 is given in parent
6 Class:
7 Class:
8 method A
9 Class:
10 Class:
11 Object2
12 Object1
13 Object1 creates object2
14 and calls object2.A

in Table To:


© 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 Mon Sep 6 1999