Write a thread-safe Singleton in C++, then explain abstraction, abstract (virtual) classes, and how vtables and vptrs make virtual calls work.
Write a thread-safe Singleton in C++, then explain abstraction, abstract (virtual) classes, and how vtables and vptrs make virtual calls work.
Opens with the full question.