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

1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

2 Answers  


In multilevel inheritance constructors will be executed from the .... class to ... class

2 Answers   ABCO, TCS,


What are the OOPS concepts?

106 Answers   A1 Technology, Bajaj, CTS, EDS, HP, Infosys, Intel, Microsoft, MNC, Persistent, PlanetSoft, ProConstructor, TCS, Virtusa, Wipro, YSoft Solutions,


What are the advantages of inheritance?

26 Answers   IBS, TCS,


Get me an image implementation program.

0 Answers  






Can bst contain duplicates?

0 Answers  


What is oops with example?

0 Answers  


Can static class have constructor?

0 Answers  


How does polymorphism work?

0 Answers  


what is the 3 types of system development life cycle

1 Answers  


What is destructor oops?

0 Answers  


What is an object?

14 Answers   HCL,


Categories