Basic HTML version of Foils prepared 19 July 97

Foil 18 The Java Object Model Overview

From Java Tutorial - Summer 1997 Part II: Java Language and Object-Oriented Concepts CEWES Tutorial -- July 22-25 1997. by Nancy J. McCracken,Geoffrey C. Fox


1 Programs are composed of a set of modules called classes. Each class is a template
2 specifying a set of behaviors on
3 the data of the class.
4 Each class has class variables
5 (sometimes called instance vars)
6 to hold the data and methods (called
7 functions or procedures in other
8 languages) to define the behaviors.
9 Each object in a program is created
10 as an instance of a class. Each class
11 instance has its own copy of the class
12 variables.
13 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).

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 Wed Apr 1 1998