Introduction
Polymorphism means having many forms in programming. The ability of the function to process the message or data in more than one form is called function overloading. When inheritance is used to extend a generalized class to a more specialized class, it includes the behavior of the top class (generalized). It is important that a given instance of an object uses the correct behavior and the property of polymorphism allows this to happen automatically. I have written this article focusing on students and beginners.
Flow Chart

Simple Keyword
Polymorphism is a message to be displayed in more than one form (or) the ability of an object to respond differently to different messages.
Method Overloading
Method overloading means Early binding or Static polymorphism. Static polymorphism is decided at compile-time only. Method overloading is a same method or function name, same return type but different input parameters.
Step 1
- Create a class Name “Common” (or) keep as it as your wish.
- To create a same method name and parameters.
- Write the following code to create a method overloading.
Coding
- public class Common
- {
- public int Add(int x,int y)
- {
- return (x + y);
- }
- public int Add(int x,int y,int z)
- {
- return (x + y + z);
- }
- }
Step 2
- Create a class Name “Test” (or) keep as it as your wish.
- To create a method, call the class named “Common” and implement the method.
- Write the following code

Coding
- public class Test
- {
- public static void Main(string[] args)
- {
- Common Ocommon = new Common();
- int Total= Ocommon.Add(10, 20, 30);
- Console.WriteLine("Total =" + Total);
- }
- }

Temidayo LongePosted Oct 25, 2019, 11:16 AM
Nice Article
Sourav Kumar DasPosted Oct 22, 2019, 11:32 PM
Superb Article.
Pankajkumar PatelPosted Oct 22, 2019, 11:00 PM
Nice article
Chittaranjan SwainPosted Oct 22, 2019, 9:59 AM
Nice article....