There are several problems here besides private: no matching constructor and Driver is not initialized yet when you are trying to use it.