Java Tutorial 19 – Accessor and Mutator Methods (Setters and Getters)

Java

Video is ready, Click Here to View ×


In this tutorial, we talk about accessor and mutator methods (also known as setter and getter methods), which can be used to access data that has been encapsulated within a class.

TechnicalCafe Blog:
http://TechnicalCafe.com

TechnicalCafe Twitter:

Jamie’s Twitter:

12 thoughts on “Java Tutorial 19 – Accessor and Mutator Methods (Setters and Getters)

  1. I still don't get the point of doing this instead of changing the variable directly without the acessors. Both will change the variables, won't they? What's the point? I know there is one, but i can't understand it.

Leave a Reply

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