program ProjectForeverAlive;
{$APPTYPE CONSOLE}
uses
SysUtils;
type
IDeveloper = interface['{4E9E0CB0-49AC-4455-9CFA-D5E2724E9B80}']
end;
IMachine = interface['{9C45ADC2-08C2-4D9E-BEA3-BEE87AF7A718}']
end;
IHumam = interface(IMachine)['{BF7B51A1-2A23-4E9C-8FE4-B4EDB08BFF05}']
function IsAlive: Boolean;
end;
THumam = class(TInterfacedObject, IHumam, IMachine, IDeveloper)
private
FName: String;
public
constructor Create(AName: String);
procedure Start;
function IsAlive: Boolean;
property Name: String read FName;
end;
{ THuman }
function THumam.IsAlive: Boolean;
const
Forever = True;
begin
Result := Forever;
end;
procedure THumam.Start;
begin
while IsAlive do
begin
WriteLn( Format('%s: %s: %s',[FormatDateTime('YYYY/MM/DD - HH:MM:SS',Now), Name, 'another new idea...']) );
end;
end;
constructor THumam.Create(AName: String);
begin
inherited Create;
FName := AName;
end;
begin
THumam.Create('Joathan Theiller').Start;
end.
-
Conceito Tecnologia LTDA
- Barreiras - BA
Popular repositories Loading
-
-
-
-
TInject-whatsapp-delphi
TInject-whatsapp-delphi PublicForked from eldon689/TInject-whatsapp-delphi
Componente TInject para criação de chatBots com delphi
Pascal
-
Projeto-TInject
Projeto-TInject PublicForked from mikelustosa/Projeto-TInject
Projeto TInject
Pascal
-
1,415 contributions in the last year
Day of Week | April Apr | May May | June Jun | July Jul | August Aug | September Sep | October Oct | November Nov | December Dec | January Jan | February Feb | March Mar | April Apr | ||||||||||||||||||||||||||||||||||||||||
Sunday Sun | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Monday Mon | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Tuesday Tue | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Wednesday Wed | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Thursday Thu | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Friday Fri | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Saturday Sat |
Less
No contributions.
Low contributions.
Medium-low contributions.
Medium-high contributions.
High contributions.
More