The following code compiles. But if I write the code to call the method test
using jar
it is giving me a compilation error. What is really happening here.
#include <iostream>
using namespace std;
class A {
public:
void test() {
cout << "working" << endl;
}
};
int main() {
A foo;
A jar();
}