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
Copyright © 1997 Gensym Corporation, Inc.