8.1 Basic Object Concepts

Table of Contents Previous Next


8 Object Types and Objects : 8.1 Basic Object Concepts

Attributes – fields that describe particular characteristics of an object instance. For a person object, examples might be name, address, gender, date of birth, height, weight, eye color, occupation, etc.
Methods – programs that perform some type of function or operation on, or related to an object. For a person object, examples might be calculating the person’s age, displaying the person’s attributes, changing the values assigned to the person’s attributes, etc.
A base data type such as NUMBER, VARCHAR2, etc.
A globally defined collection type (created by the CREATE TYPE command) such as a nested table or varray
8.1.2 Methods
Member Methods – procedures or functions that operate within the context of an object instance. Member methods have access to, and can change the attributes of the object instance on which they are operating.
Static Methods – procedures or functions that operate independently of any particular object instance. Static methods do not have access to, and cannot change the attributes of an object instance.
Constructor Methods – functions used to create an instance of an object type. A default constructor method is always provided when an object type is defined.

8 Object Types and Objects : 8.1 Basic Object Concepts

Table of Contents Previous Next