Sunday, January 31, 2016

ChildCalss5

package inheritance;

public class ChildCalss5 extends ParentClass5{



ChildCalss5() {
super(7);
System.out.println(" I am from child class constructor");
}

void test2(){
System.out.println("I am from child class");
}

public static void main(String[] args) {
// TODO Auto-generated method stub

ChildCalss5 obj = new ChildCalss5();



}

}

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