Reflection on Flow Control in C#

In C#, Flow-Control is used regularly.  It determines our program’s logic.   I have encountered some issues while using them, even though the syntax is quite simple.  These issues are not complex, but it can be serious if I ignore them. While in C# The While statement is straight forward, it keeps running till the variable i reaches…

Namespace in C#

Introduction Namespace in C# development is very heavily used regularly; it is helpful when we develop a relatively large or complex project.  For instance, .NET uses namespace to organise its classes. When it comes to using namespace in C#, it allows us to access the class of namespace by using namespace.classname syntax.  Alternatively, we can use keyword…

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…