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… Read More
Tag Archives: CSharp-OOP
When an object is assigned to an object variable of the specific type, then the C# compiler performs the binding with the help of .NET… Read More
C# allows the user to inherit one interface into another interface. When a class implements the inherited interface then it must provide the implementation of… Read More
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
.math-table { border-collapse: collapse; width: 100%; } .math-table td { border: 1px solid #5fb962; text-align: left !important; padding: 8px; } .math-table th { border: 1px… 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 the .Net Framework. It is present in the System namespace. In C#, the… Read More
Prerequisite: Constructors in C# Static constructors are used to initialize the static members of the class and are implicitly called before the creation of the… Read More
Abstraction in C# is the process to hide the internal details and show 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