/*
RULE: we can declare a class as abstract, if we declare a class as abstract that means all the methods in that class need not be abstract. that abstract class may be not with abstract methods or normal methods
*/
public abstract class Abstract_Class
{
abstract method1();
abstract method2();
public void method3()
{
System.out.println("normal method");
}
}
Demo 2:
public abstract class Empty_Abstract
{
}
RULE: we can declare a class as abstract, if we declare a class as abstract that means all the methods in that class need not be abstract. that abstract class may be not with abstract methods or normal methods
*/
public abstract class Abstract_Class
{
abstract method1();
abstract method2();
public void method3()
{
System.out.println("normal method");
}
}
Demo 2:
public abstract class Empty_Abstract
{
}