Sunday, January 31, 2016

ParentClass6

package inheritance;

public class ParentClass6 {


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

ParentClass6(int a){
this();
System.out.println("I am from parent class Parametrised constructor");
}



}

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.

    Core Java Training in Electronic city

    ReplyDelete