Monday, 19 March 2012

Method Overloading


Method overloading:

The process of defining more than one function with the same name, but with different arguments, within the same class is known as method overloading or function overloading.
     Static Polymorphism is implemented using function overloading.

Example:
 class  Poly1
{
 Void fun ()
    {
….
    }
Void fun (int x)
    {
…..
      }
}

No comments:

Post a Comment