Jul 30, 2024
public Program() {
System.out.println("This is the first constructor");
}
public Program(int a, int b) {
System.out.println(a + b);
}
public Program(int a, int b, int c) {
System.out.println(a + b + c);
}
public Program(String a, String b, String c) {
System.out.println(a + b + c);
}
Program p = new Program();
Program p = new Program(20, 30);
Program p = new Program(20, 30, 20);
Program p = new Program("a", "b", "c");