Created
July 1, 2020 19:31
-
-
Save airtonGit/320601042ed45429ee3e7f4ffbe125af to your computer and use it in GitHub Desktop.
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
// Exemplo em Java | |
void enviaMsg(IMsgBasica msg){ | |
// quem precisar chamar este método deve fornecer como | |
// parâmetro algum objeto que implemente a | |
// interface IMsgBasica | |
} | |
// Exemplo de objeto necessário | |
class MsgOla implements IMsgBasica{ | |
(…) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment