Abstract Demo Program in Java


abstract class classA
{
abstract void show();
void display()
{
System.out.println("this is a concrete method");
}
}


class classB extends classA
{
void show()
{
System.out.println("classb implementation of show method");
}
}


class AbstractDemo
{
public static void main(String args[])
{
classB b1=new classB();
b1.show();
b1.display();
}
}

We Are Founder..