TemplatesTopTranslating Java classes into C++

Translating Java classes into C++

Here are the key points:

  1. Declare every method as virtual.
  2. Only allocate objects using new.
  3. Access all objects using pointers.
  4. Use collections of pointers
  5. Define destructors and use delete to get rid of anything allocated using new as there is no garbage collection.

TemplatesTopTranslating Java classes into C++