Basic HTML version of Foils prepared July 6 99

Foil 28 Object Model Overview

From Use of Java Language in Computational Science DoD Modernization Users Group Conference Monterey -- June 7 99. by Nancy McCracken, Geoffrey C. Fox


Programs are composed of a set of modules called classes. Each class is a template specifying a set of behaviors on the data of the class.
Each class has instance variables to hold the data and methods (called functions or procedures in other languages) to define the behaviors. Each object in a program is created as an instance of a class. Each class instance has its own copy of the instance variables.
Classes can be used for data encapsulation, hiding the details of the data representation from the user of the class (by marking variables as private).
Instance
Variables
Methods



© 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 Tue Jul 6 1999