Abstract class in Java

What is Abstract class?
abstract class Language {// abstract method
abstract void method1();// regular methodvoid method2() {System.out.println("This is regular method");}}
abstract class Language {// method of abstract classpublic void display() {System.out.println("This is Java Programming");}}class Main extends Language {public static void main(String[] args) {// create an object of MainMain obj = new Main();// access method of abstract class// using object of Main classobj.display();}}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store