home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
ootp
/
chap01
/
list1_2.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1989-12-03
|
1KB
|
67 lines
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.