Java Tutorial for Beginners Series 2016 - Encapsulation in Java # 28

preview_player
Показать описание
Java Programming Tutorial Series 2016

Welcome to Java Tutorial Series. In this Complete Series. I will teach you step by step How to develop Games and Application for Android with Java using IntelliJ Idea IDM. This is a Complete Java Tutorial Series So Don't Skip any Video if you want to learn Java In Depth.

Don't Forget to Subscribe Like and Share.
Follow me On twitter for More Update and Q&A

Follow me :

Follow Umair :

Рекомендации по теме
Комментарии
Автор

One thing I don't understand is why using "Getters" and "Setters" are better than just reading and assigning the variables from within the Class scope?

awais.getAge() seems more complicated than awais.age
awais.setAge(28) seems more complicated than awais.age = 28

davidlevin_
visit shbcf.ru