/*
RULE: abstract key word only applicable for CLASSES and METHODS not for variables
*/
public abstract class AbstractDemo
{
abstract int x; // illegal
abstract public void method1();
abstract public int method2();
}
RULE: abstract key word only applicable for CLASSES and METHODS not for variables
*/
public abstract class AbstractDemo
{
abstract int x; // illegal
abstract public void method1();
abstract public int method2();
}