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


Please Help Members By Posting Answers For Below Questions

What is inheritance and how many types of inheritance?

708


What is abstraction with example?

712


What is oops in programming?

649


What is the problem with multiple inheritance?

686


How can you overcome the diamond problem in inheritance?

863






What is purpose of inheritance?

749


2. Give the different notations for the class.\

1670


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1618


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

5574


What is object-oriented programming? Webopedia definition

835


What do you mean by variable?

668


What does I oop mean?

710


what are the realtime excercises in C++?

2431


What is difference between data abstraction and encapsulation?

709


What do you mean by overloading?

679