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 |
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Explain the concept of dynamic allocation of memory?
Where are setjmp and longjmp used in c++?
what is the difference between overloading & overriding? give example.
Can a new be used in place of old mallocq? If yes, why?
What information can an exception contain?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is vectorial capacity?
What are the two types of comments, and how do they differ?
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
How can an improvement in the quality of software be done by try/catch/throw?
Can comments be nested?