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

Why static functions always uses static variables?

3 Answers  


Why is oop useful?

0 Answers  


What is difference between new and malloc?

7 Answers   emc2,


What is Inheritance, Multiple Inheritance, Shared and Repeatable Inheritance?

4 Answers   Accenture, L&T,


Why do we use oops?

0 Answers  


What is the problem with multiple inheritance?

0 Answers  


write string class as your own class in java without using any built-in function

0 Answers  


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

0 Answers  


Difference between vector and array

2 Answers  


me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise

1 Answers  


What is oops with example?

0 Answers  


What is super in oop?

0 Answers  


Categories