If I have a class (in java) like so: ```class Exam...
# announcements
t
If I have a class (in java) like so:
Copy code
class ExampleJava {
    private static int x = 10;

    public static int getX() {
        return x;
    }

    public static void setX(int num) {
        x = num;
    }
}
Can I do something like this in kotiln? If no, why?
Copy code
println(ExampleJava.x)
ExampleJava.x = 1
e
no, translation of Java getters/setters to properties is only on objects
❤️ 1
t
So it only works on instance fields?
e
and instance getters/setters, yes
t
great, thank you