home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 December
/
Chip_2001-12_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d23456
/
CAJSCRTP.ZIP
/
demo_kylix
/
classtest.ifs
< prev
next >
Wrap
Text File
|
2001-03-28
|
465b
|
30 lines
Program IFSTest;
type
u = class
public
f: string;
function getf: string;
procedure setf(s: string);
property test: string read getf write setf;
end;
function u.getf: string;
begin
writeln('GETF!');
result := f;
end;
procedure u.setf(s: string);
begin
Writeln('SETF');
f := s;
end;
var
c: U;
Begin
c := u.create;
c.f := ' eee ';
writeln(c.test);
c.test := '3ee';
writeln(c.test+'.'+c.f);
End.