Posts

Showing posts from 2010

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...

Decorator Pattern

Decorator

.Net Generics

Let's talk about .Net Generics, what exactly is Generics in .Net. Generics was first introduced in .Net Framework 2.0. What is Generics? "Generics allows you to to create type safe class without committing to the actual class" say that again? It only means that you may create a class that can be used with different types.