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 |
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?
What does scope resolution operator do?
How the delete operator differs from the delete[]operator?
What is the identity function in c++? How is it useful?
What is the this pointer?
How would perform Pattern Matching in C++?
What is the difference between method and message?
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.
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
What is an explicit constructor?
Write a program to interchange 2 variables without using the third one.
Explain deep copy?