47.abstract class - can't instantiated(can't create object)
//abstract class - can't instantiated(can't create object)
abstract class abst
{
void display()
{
System.out.println("This first prgram of abstract class");
}
}
class child extends abst
{
}
class abstrct_class
{
public static void main(String[] args) {
child obj = new child();
obj.display();
}
}
OUTPUT:
This first prgram of abstract class
Comments
Post a Comment