Keyword: Internal & Public, Abstract & Sealed

Internal & Public In C#, once we defined a class and we can instantiate it anywhere else in our project that has access to the definition. By default, classes are declared as internal. With internal, it means the class is only accessible to the code in our current project. On contrast, keyword public allows classes…

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…