class car { int speed; double position; public: car(int v,double d); int getspeed(); }; int car::getspeed() { return speed; } car::car(
In the second case, I believe the closest scope variable is used. So, first it checks the local function scope, and finds both speed and position, so the search stops there. In effect, the second constructor isn't actually assigning obje