xxxxxxxxxx
Yes, we can. An abstract class can have both abstract and non-abstract methods
xxxxxxxxxx
No. A normal class(non-abstract class) cannot have abstract methods.
xxxxxxxxxx
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();
}
}