Answers for "a. Abstract classes usually have one or more empty abstract methods b. An abstract class is one from which you cannot inherit, but from which you can create concrete objects c. An abstract method has no body, curly braces, or statements"

0

can we have abstract class having no abstract method in java?

abstract class AbstractDemo { // Abstract class
   private int i = 0;
   public void display() { // non-abstract method
      System.out.print("Welcome to Tutorials Point");
   }
}
public class InheritedClassDemo extends AbstractDemo {
   public static void main(String args[]) {
      AbstractDemo demo = new InheritedClassDemo();
      demo.display();
   }
}
Posted by: Guest on November-10-2020

Code answers related to "a. Abstract classes usually have one or more empty abstract methods b. An abstract class is one from which you cannot inherit, but from which you can create concrete objects c. An abstract method has no body, curly braces, or statements"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language