What is the rule of the class in Java?

Rules for Java Class A class can have only public or default(no modifier) access specifier . It can be either abstract, final or concrete (normal class). It must have the class keyword, and class must be followed by a legal identifier. It may optionally extend only one parent class.

Sizin İçin Seçtik  What is the difference between an inner class and a subclass in Java?

Leave a Reply

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