Question:Define Inheritance and Polymorphism.
Answer
Inheritance:When a new class is inherited from another class to extend or customize the original class, the new class is called the inheritance of the original class.Polymorphism: Polymorphism, in C#, is the ability of objects of different types to provide a unique interface for different implementations of methods.