Basic HTML version of Foils prepared June 5 99

Foil 45 Class definition

From Java Language in the Computer Science Curriculum ADMI Tutorial Duluth Minnesota -- June 3 99. by Geoffrey C. Fox


1 The class definition consists of
  • a header line giving the class name, modifiers, possible subclass and interface structure
  • declarations (and possibly initializations) of instance variables
  • declaration of a constructor method. This method has the same name as the class and does any initialization whenever an instance is created.
  • declarations of other methods.to perform operations using the data in the instance variable of the class

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 Sat Jun 5 1999