Quelles sont les méthodes appartenant à la classe Frog?
Created
September 28, 2023 11:58
-
-
Save nherbaut/0b724db417733768b62c5df3396413e0 to your computer and use it in GitHub Desktop.
L2.2.4 Exo classes type et for
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
| public void play () { | |
| Frog fred = new Frog(); | |
| Cat jiang = new Cat(); | |
| fred.hop(4); | |
| jiang.jump(5, fred); | |
| String greet = "That is all"; | |
| fred.say(greet, 3); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
execute me on https://java.miage.dev/?gistId=0b724db417733768b62c5df3396413e0