Extension methods are used for adding new functionality to an existing class without a change in the existing class or adding derived type. For this, we need to create …
Method Overloading: Method overloading allows programmers to use the same name for multiple methods. Methods are differentiated with their number and type of parameter…
There are three types of comments: 1. Single line comments: It is used to comment on a single line like below: // Single Line Comments 2. Multil…
In C#, most of the time we use using a keyword for adding namespaces at the top of the page, so it makes all methods, classes, interfaces, and abstract classes and prop…
Inheritance is the main concept of object-oriented programming. Inheritance is the mechanism that provides one class is allowed to inherit features of another class…
A constructor is a member function of the class with the same name as its class. In other words, Constructor is the same as a method inside class with the same name as…
If a class implements two interfaces that contain a member with the same signature, then implementing that member on the class will cause both interfaces to use that …