Attributes v14

Every object type must contain at least one attribute. The data type of an attribute can be any of the following:

  • A base data type such as NUMBER or VARCHAR2
  • Another object type
  • A globally defined collection type (created by the CREATE TYPE command) such as a nested table or varray

An attribute gets its initial value, which can be null, when an object instance is first created. Each object instance has its own set of attribute values.