how to pass a method belonging to an object to a thread in cpp code example Example: thread c++ member function myThreads[i] = std::thread(&Car::start, myCar);