Question: Problem 1. Unlike C, the C++ language allows procedure (method) names to be overloaded. That is, multiple methods can have the same name, as long

 Problem 1. Unlike C, the C++ language allows procedure (method) names

Problem 1. Unlike C, the C++ language allows procedure (method) names to be "overloaded. That is, multiple methods can have the same name, as long as they have different type signatures, i.e., they take different types or numbers of parameters. What is the name of the technique used by the compiler to enable the linker to do its work in this case? Explain exactly what the compiler does to allow the linker to distinguish between two C++ methods declared in the same class aClass, where one is declared void foo(int x, int y), and the other void foo(long z)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!