Is it possible to create a pointer to a class in C++
This is not possible. C++ has three types of pointers:
- Pointers to objects
- Pointers to functions
- Pointers to class members.
Classes are none of the above.
I assume, that classes exist somewhere in the Ram
Classes do not exist at run-time, so you cannot take a pointer to a class.
Only objects exist at run-time.