tclass3.pp 490 B

123456789101112131415161718192021222324252627282930
  1. {$ifdef fpc}
  2. {$mode delphi}
  3. {$endif}
  4. type
  5. TMyComponent = class
  6. public
  7. constructor Create(k1:longint;k2: shortstring);
  8. destructor Destroy;override;
  9. end;
  10. TMyComponent1 = class(TMyComponent)
  11. public
  12. constructor Create(l1:longint;l2:shortstring);
  13. end;
  14. constructor TMyComponent.Create(k1:longint;k2:shortstring);
  15. begin
  16. end;
  17. destructor TMyComponent.Destroy;
  18. begin
  19. end;
  20. constructor TMyComponent1.Create(l1:longint;l2:shortstring);
  21. begin
  22. inherited;
  23. end;
  24. begin
  25. end.