Introduction to Inheritance

Inheritance is the principle that you can apply your knowledge of a general category to more specific objects. The classes you create in object-oriented programming languages can inherit data and methods from existing classes. When you create a class by making it inherit from another class, you are provided with data fi elds and methods …

Continue reading Introduction to Inheritance

Adapter Design Pattern

Sometimes we could encountered a situation when we have a completely developed class and we are not allowed to modify it but we have to communicate with it. In that case we have to create and adapter to enable the class to communicate with us. For example, let's suppose that we developed a Log Engine …

Continue reading Adapter Design Pattern

Page Life Cycle in ASP.Net

With in Each stage of the life cycle the page raises Events that you can handle to run your own code. These are as follows 1-PreInit- Raised before the Initialization stage begins Here the Ispostback property is checked to determine wheather the first time the page is being processed. 2-Init- Raised after all the controls have been initialized. 3-Init complete: Raised at …

Continue reading Page Life Cycle in ASP.Net

Strings and StringBuilder in C#

Strings: - In C#, a string is a built in and primitive data type. It maps to the System.String class. The objects of the string class or the string is are immutable by nature. - Then the question is now what is the exact meaning of immutable by nature means, the state of the object …

Continue reading Strings and StringBuilder in C#