C# is an object-oriented program. all object-oriented programs are based on the three primary concepts:
1.Encapsulation:
Tying up a data member and a method together in a single unit or class is termed Encapsulation
2.Inheritance:
It is the term used to describe the presence of properties of other classes in a class
3.Polymorphism:
When one function works in several forms, it is termed polymorphism.