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

Is rust better than c++?

806


What do you mean by enumerated data type?

761


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

901


Write a c program for binary addition of two 8 bit numbers.

3862


Write a program to find the reverse Fibonacci series starting from N.

797






What is a container class?

799


What is virtual destructor ans explain its use?

817


What is polymorphism & list its types in c++?

795


What is pair in c++?

794


How do we implement inheritance in c++?

803


What are virtual constructors/destructors?

743


program explaining feautures of c++

2146


Are c and c++ different?

711


What is Destructor in C++?

914


Which programming language is best to learn first?

761