if i have same function with same number of argument but
defined in different files. Now i am adding these two files
in a third file and calling this function . which will get
called and wht decide the precedence?
Answer Posted / s.verma
The return type of the function and the type of arguments
passed to the function will determine which function will be
called.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what type of questions
Why interface is used?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Which language is not a true object oriented programming language?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is the diamond problem in inheritance?
#include
Is enum a class?
What is the highest level of cohesion?
Why do while loop is used?
What is object and example?
What is abstraction in oop with example?
How to use CMutex, CSemaphore in VC++ MFC
Can you inherit a private class?
What is byval and byref? What are differences between them?