February 1, 2020 / # class Abstract Classes in Java Explained with Examples Abstract classes are classes declared with abstract . They can be subclassed or extended, but cannot be instantiated. You can think of them as a class version of interfaces, or as an interface with actual code attached to the methods. When inheriting an abstract class , a concrete child class must define the abstract methods, whereas an abstract class can extend another abstract class and abstract methods from the parent class don't have to be defined. Learn the basics of abstract classes in Java, and when to use them for achieving abstraction and encapsulation. See examples of abstract classes, subclasses, and file readers. A class that is declared using " abstract " keyword is known as abstract class . It can have abstract methods (methods without body) as well as concrete methods (regular methods with body). A normal class (non- abstract class ) cannot have abstract methods. In this guide we will learn what is a abstract class , why we use it and what are

Available

Product reviews

Rating 4.5 out of 5. 8,008 reviews.

Characteristics assessment

Cost-benefit

Rating 4.5 out of 10 5

Comfortable

Rating 4.3 out of 5

It's light

Rating 4.3 out of 5

Quality of materials

Rating 4.1 of 5

Easy to assemble

Assessment 4 of 5