What is purpose of abstract class and abstract class?

The abstract keyword is a non-access modifier, used for classes and methods: Abstract class: is a restricted class that cannot be used to create objects (to access it, it must be inherited from another class) . Abstract method: can only be used in an abstract class, and it does not have a body.

Sizin İçin Seçtik  How do you create a class in Java program?

Leave a Reply

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