Sunday, January 31, 2016

Test1

package Constructor;

public class Test1 {

Test1() {
System.out.println("I am from parent default constructor");
}

Test1(int a) {
System.out.println("I am from parent parameterized constructor");
}

Test1(String c){
System.out.println("I have string argument");
}

}

1 comment:

  1. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    Java Training in Electronic city

    ReplyDelete