Virtual functions, virtual and private constructors, singleton
Filed under REVE Systems
The question
About 30 minutes: virtual function, can a constructor be virtual, whether constructors act at compile time or run time, can a constructor be private and when, and write a singleton class.
No write-up yet. Related questions below have one.
Related REVE Systems questions
- Check whether a binary tree is structurally symmetric
- Delete a node from a linked list; replace each element with greatest on right; find missin
- Convert IPv4 string to unsigned integer in C, with test cases
- Output of C and C++ snippets on overflow, endianness, pointers and copy constructors
- Foreign key insert outcome and Java static initializer output
Collected from public candidate posts and coding forums. Updated Nov 2026.