-
Notifications
You must be signed in to change notification settings - Fork 1
/
uInterfaceObjeto.pas
46 lines (34 loc) · 1.15 KB
/
uInterfaceObjeto.pas
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
unit uInterfaceObjeto;
interface
uses uCalculadoraEventos;
type
iCalculadora = interface;
iOperacoesDisplay = interface;
iOperacoes = interface
['{DF845E6B-AEC8-4670-97E9-165A9831B298}']
function Executar: string;
function Display : iOperacoesDisplay;
end;
iOperacoesDisplay = interface
['{1B7B9644-935D-42AC-9FFA-4324029E0DDD}']
function Resultado(Value: TEventoDisplay): iOperacoesDisplay;
function EndDisplay : iOperacoes;
end;
iCalculadoraDisplay = interface
['{241BB46F-82DC-41C7-B3F3-09B37FC2BF39}']
function Resultado(Value: TEventoDisplay): iCalculadoraDisplay;
function EndDisplay: iCalculadora;
end;
iCalculadora = interface
['{41DC5E6A-44D3-4C98-AF75-C265AC72C083}']
function Add(Value: String): iCalculadora; overload;
function Add(Value: Integer): iCalculadora; overload;
function Add(Value: Currency): iCalculadora; overload;
function Somar: iOperacoes;
function Subtrair: iOperacoes;
function Multiplicar: iOperacoes;
function Dividir: iOperacoes;
function Display: iCalculadoraDisplay;
end;
implementation
end.