Thanks Kurt. I changed the order in the constructor to the order that was shown in encoder.h and now it compiles without warnings.
Here is the new constructor:
ClickEncoder::ClickEncoder(uint8_t A, uint8_t B, uint8_t BTN, uint8_t stepsPerNotch, bool active)
: pinA(A), pinB(B), pinBTN(BTN)...