📅  最后修改于: 2022-03-11 14:49:00.051000             🧑  作者: Mango
Encapsulation is defined as the wrapping up of data under a single unit.
It is the mechanism that binds together code and the data it manipulates.
... Encapsulation can be achieved by:
Declaring all the variables in the class as private and using C#
Properties in the class to set and get the values of variables