// constructor3 DIS // multiple constructors ("constructor overloading") class Test3 { int k; // constr (1) Test3() { get_k(); } // constr (2) Test3(int k) { this.k = k; } void get_k() { TokenReader in = new TokenReader(System.in); System.out.print("Enter k: "); this.k=in.readInt(); } } public class constr3 { public static void main(String[] args) { Test3 a = new Test3(); // call construc (1) System.out.println(a.k); Test3 b = new Test3(3); // call construc (2) System.out.println(b.k); } }