Thursday, October 29, 2015

Oracle Object Member Methods

Member Methods

Member methods are used for manipulating the attributes of the object. You provide the declaration of a member method while declaring the object type. The object body defines the code for the member methods. The object body is created using the CREATE TYPE BODY statement.
Constructors are functions that return a new object as its value. Every object has a system defined constructor method. The name of the constructor is same as the object type. For example:
residence := address('103A', 'M.G.Road', 'Jaipur', 'Rajasthan','201301'

No comments:

Post a Comment