Abstract Class and Method in C#

Abstraction in C# is a process to hide the internal details, without generating affection on showing its functionality.  Compared with Encapsulation, Abstraction is an umbrella term, whereas Encapsulation is to protect a class’ properties from any corruption access. We can go a long way without needing an abstract class, but abstract class is a good approach…

Encapsulation Case Study – Get & Set Method

As we briefly discussed Encapsulation before, we understand the basic syntax and implementation. In this post, we mainly discussed Encapsulation’s access control- get & set method, in terms of Write & Read, Write-Only and Read-Only.

Encapsulation in C# – Private & Public

Encapsulation Encapsulation is a methodology in C# Programming language.  In terms of dictionary explanation, Encapsulation is the action of enclosing something in or as if a capsule.  Encapsulation in C# Practice & Benefits In C# (or other Object-Oriented Programming), Encapsulation wraps up of data under a single unit (class); and the data wrapped up can be…