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.

Last update: 2017.

Table of Contents

 About This Book

 Introduction of H Language

 Syntax

 Data Types

 Variables

 Expressions

 Statements

 "boolean" Data Type

 "integer" Data Type

 "string" Data Type

 "real" Data Type

 "array" Data Type

 Source Code Packages

 Classes and Objects

 Object Oriented Programming

Inheritance - Object Attachments

 What Is Object Attachment

 $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

 Encapsulation - Private Members

 References

 PDF Printing Version