Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

what is data encapsulation c#

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
 
PREVIOUS NEXT
Tagged: #data #encapsulation
ADD COMMENT
Topic
Name
6+6 =