Styrow.dev
Question 166 of 247
Java Topic: General medium

What is an abstract class?

Question

What is an abstract class?

Answer

Abstract classes are classes that contain one or more abstract methods. An abstract method is a method that is declared, but contains no implementation.

Note: • If even a single method is abstract, the whole class must be declared abstract. • Abstract classes may not be instantiated, and require subclasses to provide implementations for the abstract methods. • You can’t mark a class as both abstract and final.