abstract class z {
abstract void mtd();
public void concrete_mtd()
{
System.out.print("Concrete Method");
}
}
class x extends z
{
public void mtd()
{
System.out.print("Abstract Method Implementation");
}
}
public class abstract1
{
public static void main(String args[])
{
x obj=new x();
obj.concrete_mtd();
}
}
No comments:
Post a Comment