Basic HTML version of Foils prepared 18 May 97

Foil 36 The Java Object Model Overview

From Java Tutorial - Spring 1997 Part II: Java Language and Object-Oriented Concepts Peking Tutorial, Web Certificate -- Spring-Summer 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) 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.

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 Thu Jan 8 1998