Tag Archives: CSharp-OOP

The two main terms appearing in the above topic are Late Binding and refection. So let us first define these two terms. The binding of… Read More
Method Overriding is a technique that allows the invoking of functions from another class (base class) in the derived class. Creating a method in the… Read More
As we already know about polymorphism and method overriding in C#. C# also provides a concept to hide the methods of the base class from… Read More
Prerequisite: Properties in C# Properties are the special type of class members that provides a flexible mechanism to read, write, or compute the value of… Read More
An object and collection initializer is an interesting and very useful feature of C# language. This feature provides a different way to initialize an object… Read More
In Multiple inheritance, one class can have more than one superclass and inherit features from all its parent classes. As shown in the below diagram,… Read More
An anonymous method is a method which doesn’t contain any name which is introduced in C# 2.0. It is useful when the user wants to… Read More
A fully object-oriented language means everything is represented as an object but can’t differentiate between primitive types and objects of classes but C# is not… Read More
In general, when we try to copy one object to another object, both the objects will share the same memory address. Normally, we use assignment… Read More
Destructors in C# are methods inside the class used to destroy instances of that class when they are no longer needed. The Destructor is called… Read More
Prerequisite : Constructors in C# C# provides a powerful keyword known as this keyword and this keyword has many usages. Here we use this keyword… Read More
An abstract class is a way to achieve the abstraction in C#. An Abstract class is never intended to be instantiated directly. This class must… 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… Read More
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