14.3. 14.3 Classes in HLA
HLA's classes provide a good mechanism for creating abstract data types. Fundamentally, a class is little more than a record declaration that allows the definition of non-data fields (e.g., procedures, constants, and macros). The inclusion of other objects in the class definition dramatically expands the capabilities of a class over that of a record. For example, with a class it is now possible to easily define an ADT because classes may include data and methods (procedures) that operate on that data.
The principle way to create an abstract data type in HLA is to declare a class data type. Classes in HLA always appear in the type section and use the following syntax:
classname : class << Class declaration section >> endclass; ...
Get Art of Assembly Language, 1st Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.