Skip to content

Tag Archives: CSharp-OOP

If we have two classes class A and class B, and B is derived from A then when we assign an object of class B… Read More
Given an object, now we pass this object as an argument into the method in C#. Here, a method is a code block that contains… Read More
Multilevel Inheritance is the process of extending parent classes to child classes in a level. In this type of inheritance, a child class will inherit… Read More
The two main terms appearing in the above topic are Late Binding and reflection. 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 to… 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

Start Your Coding Journey Now!