filmov
tv
Java Practice Examples - Module 4-3 Getters and Setters
![preview_player](https://i.ytimg.com/vi/eazfmKKNJKc/maxresdefault.jpg)
Показать описание
In this series, we'll be using the free Visual Studio Code to develop and test our code samples.
In this video we look at how to create Getters and Setters in our class. This will allow us to access private data members by utilizing public methods. This protects our data and increases the chances of our data being both accurate and reducing potential bugs.
This concept is part of Object Oriented Programming called encapsulation and is an important concept to learn.