What is abstract class in Java with example?

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.

Sizin İçin Seçtik  Is abstract class better than interface?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is abstract class in Java with example?

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.

Sizin İçin Seçtik  Can two objects have same class name?

Leave a Reply

Your email address will not be published. Required fields are marked *