Java - Classes and Objects
What will be the output of this code?
class Box {
int length = 5;
int width = 3;
}
public class Test {
public static void main(String[] args) {
Box b = new Box();
b.length = 10;
System.out.println(b.length + b.width);
}
}