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?



if i have same function with same number of argument but defined in different files. Now i am addi..

Answer / 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

More OOPS Interview Questions

When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??

13 Answers   HCL, Honeywell,


How is exception handling carried out in c++?

3 Answers  


Why is polymorphism important in oop?

0 Answers  


How to improve object oriented design skills?

0 Answers  


Why u change company?

12 Answers   BOB Technologies,






What are functions in oop?

0 Answers  


In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?

2 Answers  


Why do pointers exist?

0 Answers  


Can you name some types of inheritance?

0 Answers   Motorola,


can inline function declare in private part of class?

1 Answers  


What is ambiguity in c++

4 Answers   Accenture, Mphasis,


How to call a non virtual function in the derived class by using base class pointer

3 Answers   HCL,


Categories