This repo is for demonstrating OOPS concepts in C# programming. I will update it with more examples.
You can ⭐ it, would be useful when brushing up OOP basics.
- Try Catch Finally blocks
- Interface, Classes Inheritance scenario
- Polymorphism
- Static Members
- Abstract Classes/Methods
- Interfaces
Polymorphism means same method name used in but different forms. It is also known as method overloading, early binding. It works on:
- Number of parameters
- Data type of parameters
- Return Type of the method is never comsidered for polymorphism.
int sum (int a, int b);
string sum (int a, int b);
var x = sum(2,5); // this will result in error as compile wil not be sure which method to call.