✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class A {
public:
int inc (int x) {return ++ x; };
int inc (short x) {return x + 2; };
};
A obj; int y = 5;
cout << obj.inc (y);
(C++)