CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ | Grades

Classes

Objects and Classes
Introduction
Relationship between a class and its object

The relationship between a class and its objects

  • A class can be thought of as a template from which objects are made.
  • An object diagram provides the name of the object and the values of the fields.
  • Once an instance of a class is created, it has an identity (a unique address) and a state (the values that it holds).
  • Although an object's state may change throughout a program, its identity never does.

Previous | OOP Programming Concepts | Use | Encapsulation | Relationship between a class and its object | Next