The function was like
Code:
class calc
{
float area(float a)
{
    return a*a;
}
int area(int a)
{
return a*a;
}
};
main()
{
calc ob1;
ob1.area(10);
ob1.area(10.5);
getch();
}

Last edited by shabbir; 30Nov2011 at 15:10.. Reason: Code blocks