error: expected primary-expression before '.' token

In the PID examples I saw a line PID myPID(&input, &output, &setpoint,kp,ki,kd, DIRECT); but I couldn't find an explanation of what it was doing so I've just been experimenting. Could you let me know where I can find out about the relationship between objects and classes?