Abstract Class and Interfaces in csharp

Polymorphism in C#

Poly means many and morph means form. Thus, polymorphism refers to being able to use many forms of a type without regard to the details. One of the basic concepts of object oriented software development is polymorphism. The word polymorphism (from the Greek meaning “having multiple forms”) in OOP is the characteristic of being able …

Polymorphism in C# Read More »

overloading in C#

Constructors are also functions and can be parameterized (takes parameters as input)and they can be overloaded. They allow flexibility while creating an object. Suppose there is a Rectangle class declared in the System.Drawing namespace. It can be instantiated by either of the two methods.   Using Default Constructor Using Parameterized Constructor   Method 1: Using …

overloading in C# Read More »

What is Advantages and Disadvantages of Interfaces In C# Programming Language?

Disadvantage of using Interface One drawback of using interfaces is that it makes the code more complicated to understand. Advantage of using Interface The major advantage of using interfaces is that you add an extra dimension of communication to your design. Instead of only accessing classes through class inheritance, with interfaces you can make a …

What is Advantages and Disadvantages of Interfaces In C# Programming Language? Read More »

Scroll to Top