A Review of OOP Concepts
What's OOP? Object Oriented Programming or simply OOP is a way of programming in which you think of Objects and the interrelated methods, functions or properties that each object must contain. There are four important concepts behind Object Oriented Programming these are Abstraction, Encapsulation, Polymorphism and Inheritance. Abstraction It the process of modelling wherein only the needed or the important functions of a class are shown and hide the inner workings to lessen the complexity. Encapsulation Often referred to as information hiding, encapsulation hides data from external access, in C# access is given through access modifiers such as public, internal and protected. Polymorphism Is simply having many forms and shapes, you may ave many classes which can be used interchangeably, in .Net polymorphism is implemented through interfaces. Inheritance is the ability to create a new class from existing base class, parent class are called base class and the class t...