Laquelle de ces variables n'est pas un type primitif ? f, x, a, b ?
Created
September 28, 2023 12:08
-
-
Save nherbaut/7d2e671c85856dd90ae2a5e3e59fbfdd to your computer and use it in GitHub Desktop.
L2.2.4 Primitif ou pas?
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 Thing { | |
private int a; | |
public Thing(int x) { | |
a = x; | |
} | |
public int geta() { | |
return a ; | |
} | |
public void print() { | |
int b = 4 ; | |
System.out.println(geta() + " " + b); | |
} | |
public static void main(String ...args){ | |
} | |
} |
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=7d2e671c85856dd90ae2a5e3e59fbfdd