[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 6.9 Objects

Objects in the Borland Pascal 7.0 notation are implemented into GNU Pascal with the following differences:

- the ``private'`, ``protected'`, ``public'` and ``published'` directives are recognized but ignored,
- data fields and methods may be mixed:

      type
        MyObj = object
          x: Integer;
          procedure Foo; virtual;
          y: Real;
          function Bar: Char;
        end;

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html