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

## 9.175 object

### Synopsis

### Description

The keyword ``object'` is used to declare a new object type:

    type
      foo = object
        a: Integer;
        constructor Init;
        procedure Bar (x: Integer); virtual;
      end;

(For a longer example, see section 8.8 Object-Orientated Programming.)

### Conforming to

GNU Pascal follows the Borland Pascal 7.0 object model.

ISO Pascal does not support Object-orientated programming. There is an ANSI draft for an "Object Pascal" language which is not yet supported by GPC, but planned. The Delphi language, also called "Object Pascal" by Borland, is currently not supported by GPC either.

### Example

### See also

section 8.8 Object-Orientated Programming, section 9.222 record.

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