example code abstract class constructor
package funds;
abstract class AbstractDemo {
AbstractDemo()
{
System.out.println("this is abstruct class constructor");
}
abstract void m1();
}
public class AbstractConst extends AbstractDemo
{
public void m1()
{
System.out.println("m1 implementation");
}
public static void main(String arg[]){
AbstractConst a=new AbstractConst();
}
}
output:
this is abstruct class constructor
1 comments:
how to check step step demo in netbeans????
Post a Comment