Abstraction is one of the principle of object oriented programming . It is the concept of display only the necessary and essential features of an object .You can find the concept of Abstraction in your real world in many instances . Example for Real world Example : The simple and well known example is steering… Continue reading Abstraction in OOPs
Generally if we create classes we can inherit the properties of that created class in any class without having any restrictions. In some situation we will get requirement like we don’t want to give permission for the users to derive the classes from it or don’t allow users to inherit the properties from particular class… Continue reading Sealed Classes in Object-Oriented Programming
A quick overview of some of the new language features coming to C# 7.0 read more....
System.String is immutable whereas System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed. Append keyword is used in string builder but not in system.string.Immutable means once we created we cannot modified. Suppose if we want give new value to old value simply it will discarded… Continue reading System.stringbuilder Vs. System.string?
Method Overriding can be defined as: being able to change or augment the behavior of methods in classes, known as overriding their logic; it is one of the most powerful aspects of Object Oriented Programming. Explanation Suppose you have a Phone, no please don’t suppose everyone has a phone today, although some people even have more… Continue reading Method Overriding in C#