Oh, i forgot java/c# gets interpreted and c++ is an executeable.
The distinction isn't all that useful, both Java and C# VMs run mostly native code, same as C++ binary. They just defer the compilation until code runs. And even then it's possible to force most compilation upfront.
On Android, Java is statically compiled, exactly the same way as C++.
On most modern x86 CPUs even native code is "interpreted", at very least the instructions that CPU executes are defined via microcode rather than being implemented directly.
Didnt knew that Is there no way to do this?[/quote]
Of course there is, it's just a bit of work. Structure data must either be manually defined or somehow generated by compiler or some other tool.
C++ doesn't offer reflection out-of-box due to optimization. A compiler is free to remove anything it deems redundant, including structures and functions. Full reflection would require preserving even unused parts. Templates in particular cause unacceptable overhead without such optimization.