Abstraction in Java

Get introduced to what abstraction is in Java.

What is abstraction?

Showing only essential information and hiding unnecessary information is called abstraction. For example, when we use a cell phone, all we are seeing is the screen. We don’t need to know what’s happening behind the screen.

Abstract class

An abstract class is a class that declares one or more abstract methods. Such a class can have abstract methods as well as concrete (normal) methods, whereas a normal class cannot have any ...