How would I recreate this in C++?

Why do UserInterfaceCLass?