Answer Posted / sujith
The above answer is well explained. In technical terms it
can be explained as same function name with different
signature. Signature means only interms of arguments, and
not for return types. The idea is very simple and is a
feature which make the end user comfortable, and as Swetcha
said, it is finally the compiler will decide, which function
to call when, according to the type of data passed to the
function.
eg. int add(int, int)
double add(double, double)
char add(char, char)
but the following is not possible
int add(int, int)
char add(int, int)
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
hi all..i want to know oops concepts clearly can any1 explain??
What is polymorphism used for?
Get me an image implementation program.
What is object-oriented programming? Webopedia definition
What does it mean when someone says I oop?
What do you mean by Encapsulation?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What is the fundamental idea of oop?
Explain virtual inheritance?
What are two types of polymorphism?
What is the difference between abstraction and polymorphism?
Give two or more real cenario of virtual function and vertual object
write string class as your own class in java without using any built-in function
What are properties in oop?
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.