Extend Tclientsocket Delphi class

Asked

Viewed 226 times

1

I would like to know how to extend the Tclientsocket class in Delphi, to put new features without losing the old ones, with examples. Hug.

1 answer

2


Simply inform the class that you want to extend in parentheses after the class

unit ClientSocketPersonalizada

uses
  System.Win.ScktComp;

type
  TClientSocketPersonalizada = class(TClientSocket)
  public
    procedure SeuMetodo;
  end;
  • 1

    Thank you, I was really in doubt if I was doing it correctly.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.