Skip to content

Tag Archives: CSharp-OOP

Prerequisite: Constructors in C#   Private Constructor is a special instance constructor present in C# language. Basically, private constructors are used in class that contains… Read More
A partial class is a special feature of C#. It provides a special ability to implement the functionality of a single class into multiple files… Read More
C# contains a special method is known as a partial method, which contains declaration part in one partial class and definition part in another partial… Read More
In C#, one is allowed to create a static class, by using static keyword. A static class can only contain static data members, static methods,… Read More
A class is a user-defined blueprint or prototype from which objects are created. Basically, a class combines the fields and methods(member function which defines actions)… Read More
In C#, you are allowed to create a reference variable of an interface type or in other words, you are allowed to create an interface… Read More
In the Multilevel inheritance, a derived class will inherit a base class and as well as the derived class also act as the base class… Read More
In C#, both the base class and the derived class can have their own constructor. The constructor of a base class used to instantiate the… Read More
The Object class is the base class for all the classes in .Net Framework. It is present in the System namespace. In C#, the .NET… Read More
Prerequisite: Constructors in C# Static constructors are used to initializing the static members of the class and implicitly called before the creation of the first… Read More
Abstraction in C# is the process to hide the internal details and showing only the functionality. The abstract modifier indicates the incomplete implementation. The keyword… Read More
Data Abstraction is the property by virtue of which only the essential details are exhibited to the user. The trivial or the non-essentials units aren’t… Read More
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