Java is like C. You are correct.
Code: Select all
public class C {
public void f() {}
}
...
C a;
a.f();
Code: Select all
struct C {
};
void f(C* th1s) {}
...
struct C a;
f(&a);
Instead in C++ try to write:
Code: Select all
#include <iostream>
void f(int & t) {
std::cout << &t <<std::endl; }
int main() {
int a;
std::cout << &a << std::endl; }
Python looks like this last one: see the id(). Yet it works differently, see the x = (1 + x). Python differs from both.
This is the reason of the original message ``It is debatable''.
*Anyone who tries to say that one call is virtual and other it is not will be shot.
**Maybe there is some arcane way to distinguish, but it not obvious.