| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 12)

Chapter 22

Methods


Shows how to define and use G2 methods.

Overview
Introduction to Methods
Methods and Procedures
The Vessel Example
Filling Vessels Using Procedures
Filling Vessels Using Methods
Encapsulation
Duplicate Methods
Inheriting Methods
Defining Methods
Designing a Class Hierarchy
Implementing a Class Hierarchy
Creating Method Declarations
Flagging Call Next Method Requirements
Defining a Method
Method Attributes
Describing a Collection of Methods
Invoking a Method
Invoking a Method Generically
Matching Types in Generic Method Invocations
Invoking a Method Directly
Optional Direct Invocation
Matching Types in Direct Method Invocations
Invoking a Superior Method (call next method)
Duplicate Methods
Duplicate and Superior Methods
Inlining a Method
Declaring a Method as Inlineable
Recompiling an Inlineable Method
Testing for an Inlined Method
Considerations for Multiple Inheritance
| Prev | Next | Previous Chapter | End of Chapter | Contents | Glossary | Index | Comments | (1 out of 12)

Copyright © 1997 Gensym Corporation, Inc.