Updated the ClasCanBeTyped

This commit is contained in:
ahmad 2024-05-11 13:54:56 +02:00
parent 31d57c8ba9
commit 17c806c592

View File

@ -1,8 +1,20 @@
public class ClassCanBeTyped {
int x;
int y;
char z;
boolean a;
ClassCanBeTyped b;
public ClassCanBeTyped(int x) {
this.x = x;
}
public ClassCanBeTyped(int x, int y) {
this.x = x;
this.y = y;
}
public ClassCanBeTyped init(int x, int y) {
return new ClassCanBeTyped(x, y);
}
public ClassCanBeTyped() {
this.x = 10;
int i;
@ -33,7 +45,7 @@ public class ClassCanBeTyped {
}
public int getX(char z) {
return x;
return this.x;
}