Describe functional overloading?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
What does flush do c++?
What is endl c++?
What is a "RTTI"?
What is a catch statement?
class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable
What is the size of pointer ? Also size of pointer in 64 bit pointer
Is there a sort function in c++?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What is type of 'this' pointer?
Explain about vectors in c ++?
How are Structure passing and returning implemented by the compiler?
What is general form of pure virtual function? Explain?