Created
April 9, 2021 02:58
-
-
Save viniciussanchez/37a3d81661698ee3403536cf4f03982f to your computer and use it in GitHub Desktop.
Violação do SPR
This file contains hidden or 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.Violacao; | |
interface | |
type | |
TLogger = class | |
private | |
procedure SendMail; | |
public | |
procedure Log; | |
end; | |
implementation | |
procedure TLogger.Log; | |
begin | |
// write log | |
SendMail; | |
end; | |
procedure TLogger.SendMail; | |
begin | |
// Send mail | |
end; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment