home *** CD-ROM | disk | FTP | other *** search
- 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.
-