Download objects
Transcript
01: Coding in Pascal - 31 procedure inline overload A sub-routine or group of statements which doesn't return a result Requests the compiler to optimize a function or procedure Allows the reuse of the name of a function or procedure Many other keywords relate with classes and objects: Indicates a class type Used to indicate an older class type (now deprecated) A class that is not fully defined A class from which other classes cannot inherit Indicates an interface type (listed also in the first group) An object or class initialization method An object or class cleanup method A virtual method The modified version of a virtual method Refers to a method of the base class Portion of a class not accessible from the outside Portion of a class with limited access from the outside Portion of a class fully accessible from the outside Portion of a class made specifically available to users A stronger limitation for private and protected sections A symbol mapped to a value or method The mapper for getting the value of a property The mapper for setting the value of a property The value of a zero object (used also for other entities) class object abstract sealed interface constructor destructor virtual override inherited private protected public published strict property read write nil A smaller group of keywords is used for exceptions handling (see Chapter 11): The start of an exception handling block Introduces code to be executed regardless of an exception Introduces code to be executed in case of an exception Used to trigger an exception try finally except raise Another group of keywords is used for operators and is covered in the section “Expressions and Operators” later in this chapter, (beside some advanced operators covered only in later chapters): as is not shr and in or xor div mod shl Marco Cantù, Object Pascal Handbook