Encapsulation
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...
mariamchaudhary.hashnode.dev2 min read