2 posts / 0 new
-->
Priyanka Singh
Jyotiprava
abstract class abc
{
 abstract go( );
}
abstract class bdg extends abc
{
 abstract go( );
}
abstract class gre extends bdg
{
 abstract go( );
}
public static void main(string[arg])
{
gre p= new gre( );
p.go( );
}
 
If we write the code like this it will so compile time error, because we can't create the object of abstract class so we need to implement the method in one class.