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

What is polymorphism and types?

0 Answers  


When is a memory allocated to a class?

11 Answers  


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

0 Answers   IBM,


Why and when is a virtual destructor needed?

5 Answers  


Polymorphism with an example?

8 Answers   Accenture, emc2,






Difference between vector and array

2 Answers  


Program to open a file with First argument

1 Answers   TCS,


What is encapsulation in oop?

0 Answers  


Write a program to get the binary tree.

3 Answers   ABC,


What is meant by oops concept?

0 Answers  


What is oops concept with example?

0 Answers  


which structured data type is not used in c++? 1.union 2.structure 3.string 4.boolean

2 Answers   HCL, Wipro,


Categories