class X { private int getX() { return 5; } public int get2X() { X x = new X(); return 2 * x.getX(); } }
Login in to like
Login in to comment
Refer from where? Yes, if from inside of given class, no if from other class.
2015 Nov 28, 11:36:51 AM
or Read more about Java Quizzes
Login in to like
Login in to comment