home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
- type
-
- XYZ = object
- a : integer;
- b : real;
- c : string[32];
- procedure Init( aa : integer; bb : real;
- cc : string );
- end;
-
- procedure XYZ.Init( aa : integer; bb : real;
- cc : string );
- begin
- a := aa;
- b := bb;
- c := cc;
- end;
-
- var
- R : XYZ;
-
- begin
-
- R.Init( 1234, 2.712,
- 'The string is 32 characters long');
- writeln( 'The integer value is ', R.a );
- writeln( 'The string value is "', R.c, '"' );
- writeln( 'The real value is ', R.b );
-
- end.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-