Category Archives: JAVA

Important Rule of Abstract Class

1. Class is declare with keyword “abstract” public abstract parentClass  {  } 2. May or May not  Include abstract method 3. Abstract methods do not have implementation or body part. public abstract void moveTo(int x, int y); 4. Abstract classes cannot be instantiated , but they can be subclassed 5.If a class includes abstract methods, the class itself must be […]