What is getter and setter?

Getters and Setters play an important role in retrieving and updating the value of a variable outside the encapsulating class. A setter updates the value of a variable, while a getter reads the value of a variable .

Sizin İçin Seçtik  What are the best short courses to do?

Leave a Reply

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