Encapsulation

Hide data with private fields and expose getters/setters.

Lesson complete

Nice work. Replay it any time.

All courses

About this topic

Hide data with private fields and expose getters/setters.

Part of Java & Object-Oriented Programming: 23 topics, 5 free.

More topics in this course