Created
September 14, 2023 09:03
-
-
Save nherbaut/41f942c6cc55063ca5886211370e1d69 to your computer and use it in GitHub Desktop.
Created from MIAGE Code Crafting
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 class Voiture{ | |
| int vitesse; | |
| public Voiture(int v){ | |
| vitesse=v; | |
| } | |
| public static void main(String ...args){ | |
| Voiture v = new Voiture(30); | |
| Voiture vv = v; | |
| System.out.println(v==vv); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment