LessonAbout 7 minLesson languageEnglishதமிழ் (Tamil)हिन्दी (Hindi)മലയാളം (Malayalam)తెలుగు (Telugu)ಕನ್ನಡ (Kannada)বাংলা (Bengali)मराठी (Marathi)ગુજરાતી (Gujarati)ਪੰਜਾਬੀ (Punjabi)Chapter 8 · Lesson 4 of 504. Private fields, getters and settersMake fields private so only the class's own methods can change them, and give other code getters and checked setters instead.