how to start a thread on member function cpp code example Example: thread c++ member function myThreads[i] = std::thread(&Car::start, myCar);