Answer Posted / pankaj kumar sharma
Function overloading takes place when a function is
overloaded with two or more tasks ie. same function is
having different behaviour.
It takes place when two functions have same name but
differs in argument list ie. may be the no of arg in both
fun are different or type of the arguments in argument list
are diff.
As return type of a func. does not take part in name
mangling so return type for overloaded functions may differ
or not.
eg: int fun(int arg1, int arg2)
char* fun(char* ptr1)
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Can static class have constructor?
What is the full form of oops?
What are constructors in oop?
what type of question are asked in thoughtworks pair programming round ?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
What is polymorphism and example?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is purpose of inheritance?
What is the difference between encapsulation and polymorphism?
Why do while loop is used?
Can a varargs method be overloaded?
What are main features of oop?
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is the important feature of inheritance?
Who invented oop?