aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Flow of execution in case of Inheritance..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Flow of execution in case of Inheritance....." Watch "Flow of execution in case of Inheritance....." New topic
Author

Flow of execution in case of Inheritance.....

Kshz Rn
Greenhorn

Joined: Apr 04, 2014
Posts: 3
abstract class A
{ abstract public void show();
public void test(){System.out.println("A");}
}
abstract class B extends A
{
public void display(){show();}
}
class C extends B
{
public void show(){System.out.println("C");}
}
class Test
{
public static void main(String S[])
{
B ob=new C();
ob.display();
}
}
Kshz Rn
Greenhorn

Joined: Apr 04, 2014
Posts: 3
can anyone tells me the flow of execution of above code.
 
wood burning stoves
 
subject: Flow of execution in case of Inheritance.....