H (Hybrid) Language - v0.03, by Dr. Herong Yang
What Is Object
This section describes what is object.
An object, also called instance, is a data object of a specific class. An object has the same list of properties and methods as all other objects in the same class.
An object is must be created by a constructor function of the class. For example, the array() constructor function of the "array" class can create "array" objects as show below:
array(1,2,3); # returns an "array" object of [1,2,3] array(1, "Two", 3); # returns an "array" object of [1, "Two", 3]
Table of Contents
$class Statement - Create New Classes
Execution of $class Definition Body
__new() - Object Constructor Function
$instance Statement - Define Instance Template
Execution of $instance Definition Body
$method Statement - Define Object Method
_first() Method - Object Initialization
Access Class Variables from Object Methods
__delete() - Object Destructor Method
$delete Statement - Delete Objects
_last() Method - Object Cleanup
Inheritance - Object Attachments