This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.DIP.Refatoracao; | |
interface | |
type | |
TFirebirdConnection = class | |
public | |
procedure Connect; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.DIP.Violacao; | |
interface | |
type | |
TFirebirdConnection = class | |
public | |
procedure Connect; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.ISP.Correcao; | |
interface | |
type | |
IAves = interface | |
['{1F0490B4-0D6D-4BDE-A28A-8E1E2E717874}'] | |
procedure BeberAgua; | |
procedure EmitirSom; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.ISP.Violacao; | |
interface | |
type | |
IAves = interface | |
['{1F0490B4-0D6D-4BDE-A28A-8E1E2E717874}'] | |
procedure BeberAgua; | |
procedure EmitirSom; | |
procedure Voar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Função que espera um objeto do tipo TClassePai como parâmetro | |
function GetMensagemOk(const AObjeto: TClassePai): string; | |
begin | |
Result := 'Ok'; | |
end; | |
var | |
LClassePai: TClassePai; | |
LClasseDerivada: TCLasseDerivada; | |
begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.LSP; | |
interface | |
type | |
TClassePai = class | |
public | |
function GetNome: string; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.OCP.Boleto; | |
interface | |
type | |
IBanco = interface | |
['{71EB60CC-91C0-40E3-9D58-9F2CC46E84A9}'] | |
procedure GerarBoleto; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.OCP.Violacao; | |
interface | |
type | |
TBancoItau = class | |
public | |
procedure GerarBoleto; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.SRP.Logger; | |
interface | |
type | |
TLogger = class | |
public | |
procedure Log; | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.SRP.MailService; | |
interface | |
type | |
TMailService = class | |
public | |
procedure SendMail; | |
end; |