Describe functional overloading?

Answers were Sorted based on User's Feedback



Describe functional overloading?..

Answer / ningu

functional overloading means in a program we can have one or
more functions with the same name but they must differ in

:No of parameters passed
:order of the parameter passed
:the type of the parameter

Oop languages like C++ and Java posses this tecnique

Is This Answer Correct ?    8 Yes 1 No

Describe functional overloading?..

Answer / abhishek sinha

functiion overloading means in a program we can define more
than function with the same name but different argument.

Is This Answer Correct ?    2 Yes 1 No

Describe functional overloading?..

Answer / 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

Describe functional overloading?..

Answer / harini

function overloading means ,the same functions which is used for different purpose with different parameter..

Is This Answer Correct ?    1 Yes 0 No

Describe functional overloading?..

Answer / naidu

method name is same and signature is different, signature
means, .type of parameters or
.order of parameters or
.number of param

Is This Answer Correct ?    1 Yes 0 No

Describe functional overloading?..

Answer / vignesh

c consists of both object oriented and function oriented
but whereas java consists of only object oriented language

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More C++ General Interview Questions

There is a magic square matrix in such a way that sum of a column or a row are same like 3 5 2 4 3 3 3 2 5 sum of each column and row is 10. you have to check that matrix is magic matrix or not?

1 Answers   TCS,


What does scope resolution operator do?

0 Answers  


How the delete operator differs from the delete[]operator?

0 Answers  


What is the identity function in c++? How is it useful?

0 Answers  


What is the this pointer?

0 Answers  






How would perform Pattern Matching in C++?

0 Answers   Genpact,


What is the difference between method and message?

5 Answers   HP,


In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest.

5 Answers   GE,


class Foo { public: Foo(int i) { } }; class Bar : virtual Foo { public: Bar() { } }; Bar b; Referring to the above code, when the object 'b' is defined, a compiler error will occur. What action fixes the compiler error? a) Adding a virtual destructor to the class Bar b) Adding a constructor to Bar which takes an int parameter c) Adding "Foo()" to the Bar constructor d) Adding a copy constructor to the class Foo e) Adding "Foo(0)" to the Bar::Bar initializer list

2 Answers   Quark,


What is an explicit constructor?

1 Answers  


Write a program to interchange 2 variables without using the third one.

0 Answers  


Explain deep copy?

0 Answers  


Categories