summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/fcl-net/examples/svrclass.pp
blob: c20b31ca777d657627cb4c7d6b21333c433b065a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
unit svrclass;

interface

type

  TServerClass = class
  public
    procedure WriteString(const s: String);
    function Add(Arg1, Arg2: Integer): Integer;
  end;


implementation

procedure TServerClass.WriteString(const s: String);
begin
  WriteLn('String: "', s, '"');
end;

function TServerClass.Add(Arg1, Arg2: Integer): Integer;
begin
  WriteLn('Adding ', Arg1, ' and ', Arg2);
  Result := Arg1 + Arg2;
end;

end.