Hi,
I wonder how can access to a static method of a class called width from another object that has an attribute called width too:
ex:
public class width{
private int test;
public static int testValue(){
return this.test;
}
}
public class Rect{
private int width;
private int height;
public void something(){
width.testValue(); //This will try to access to the attribute. But what i want is to access to the class static method.
}
}
I've tried with the Class.forName("width").testValue() but didnt work.
Thanks