1abstract class AbstractDemo { // Abstract class
2 private int i = 0;
3 public void display() { // non-abstract method
4 System.out.print("Welcome to Tutorials Point");
5 }
6}
7public class InheritedClassDemo extends AbstractDemo {
8 public static void main(String args[]) {
9 AbstractDemo demo = new InheritedClassDemo();
10 demo.display();
11 }
12}