H (Hybrid) Language - v0.03, by Dr. Herong Yang
Append Multiple Object Attachments
This section describes how to append multiple objects to the current object.
The $append statement can be used repeatedly to attach multiple objects to the current object.
Examples of multiple object attachments:
$class address: {...}; $class person: {...}; $class employee: {...}; e = employee(); $append e $with person(); $append e $with address();
Appended objects form a priority queue to resolve name collision issues. Objects appended earlier have higher priorities.
Table of Contents
►Inheritance - Object Attachments
$append Statement - Attach Objects
Name Collision in Attached Objects
►Append Multiple Object Attachments
$trim Statement - Detach Objects
Build Subclasses with Superclasses
Object Morphinism by Changing Attachments