Test

Posted On // Leave a Comment
<pre>abstract class A
{
abstract void displayb();
void displaya()
{
System.out.println("This is a concrete Method");
}
}

class B extends A
{
void displayb()
{
System.out.println("B is Implimentation");
}
}

class AbstractDemo
{
public static void main(String args[])
{
B b=new B();
b.displayb();
b.displaya();
}
}</pre>

0 comments:

Post a Comment

Recent Comments