Should getters and setters be before or after constructor?

The Java coding convention states that methods (getters and setters are methods) should be after constructors declarations . It just a convention and it exists to make code easier to read in general.

Sizin İçin Seçtik  What are the attributes in Java?

Leave a Reply

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