Explain the process of Polymorphism with an example.

devquora
devquora

Posted On: Feb 22, 2018

 

Polymorphism is the process when the same method is applied using different implementation techniques. Polymorphism is of two types:

Compile time polymorphism: when an operator is overloaded.

Runtime polymorphism: when an operator is overridden

For example – If a particular class has Void Add (), then polymorphism can be accomplished by the overload technique, then the Void Add() becomes Void Add(int a, int b) and Void Add(int add).

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    C# Interview Questions

    What is C#?

    C# is a programming language which is object-oriented developed by Microsoft...

    C# Interview Questions

    Define a class and an object.

    A class is an example of properties and techniques that utilize and characterize a continuous substance...

    C# Interview Questions

    List the fundamental OOP concepts.

    The fundamentals of an OOP concept are:..