Introduction Encapsulation means wrapping code and data together into a single unit. Encapsulation is also used for data hiding. But the main purpose of encapsulation is to bind the data together in a single unit. class Area { // fields to calcul...

Markdown supported · ⌘↵ to post
No responses yet.