Describe functional overloading?

Answer Posted / rasool

Ningu, its not necessary that the functions 'must' differ
in the :No of parameters passed
:order of the parameter passed
:the type of the parameter.

say, I have a function Add(int a , int b)
I still can have a function Add(int*a,int*b).

Function overloading is type of polymorphism in C++.i.e
multiple forms of the same function(methods).Function
overloading comes under compile time polymorphism.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write about c++ storage classes?

800


What does flush do?

597


What is a base class?

646


What is object oriented programming (oop)?

670


What is the use of object in c++?

616






Why do we need templates?

575


Can a new be used in place of old mallocq? If yes, why?

658


Explain explicit container.

673


What will the line of code below print out and why?

361


Why is c++ not purely object oriented?

603


What is the difference between new() and malloc()?

655


What is this pointer in c++?

775


How to declare a pointer to an array of integers?

677


Do you know the problem with overriding functions?

605


Which programming language is best to learn first?

619