Skip to content

Tag Archives: CSharp-Inheritance

Abstraction is the process to hide the internal details and show only the functionality. The abstract keyword is used before the class or method to… Read More
Abstract Class is the way to achieve abstraction. It is a special class that never be instantiated directly. This class should contain at least one… Read More
Inheritance is a basic aspect of object-oriented programming. A superclass, also known as a base class, is a class whose members are inherited, whereas a… 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
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
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
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

Start Your Coding Journey Now!