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. 

+ Report
Total Preview: 1107
Define Inheritance and Polymorphism.
Copyright © 2024. Powered by Intellect Software Ltd