Close sidebar

If class is declared abstract then why abstract keyword used before method in abstract class?

In abstract class we declare whole class as abstract i.e incomplete then why abstract keyword needs to declare before method?

Your Answer

A class that is declared using “strongabstract/strong” 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 the rules that we must remember while working with it in Java.

Comments

Didn't get the answer.
Contact people of Talent-Core Java directly by clicking here