Skip to content

Tag Archives: CSharp-OOP

If you don’t provide a constructor for your class, C# creates one by default that instantiates the object and sets member variables to the default… Read More
A constructor that creates an object by copying variables from another object or that copies the data of one object into another object is termed… Read More
Prerequisite: Constructors in C# It is quite similar to the Method Overloading. It is the ability to redefine a Constructor in more than one form.… Read More
Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it… Read More
Method Overriding in C# is similar to the virtual function in C++. Method Overriding is a technique that allows the invoking of functions from another… Read More
Inheritance is an important pillar of OOP(Object Oriented Programming). It is the mechanism in C# by which one class is allowed to inherit the features(fields… Read More
Sealed classes are used to restrict the users from inheriting the class. A class can be sealed by using the sealed keyword. The keyword tells… Read More
Class and Object are the basic concepts of Object-Oriented Programming which revolve around the real-life entities. A class is a user-defined blueprint or prototype from… Read More
Before going on properties lets have a look at why the concept of properties came into C#? The is because of two reasons:  If the… Read More

Start Your Coding Journey Now!