Java to C++: Object class
Posted: Thu Apr 15, 2010 9:06 am
I'm currently working with C++, and my background is Java, and some features from Java don't match in C++. For example, the Object class from Java which doesn't exist in C++.
If I have for example the following method in Java and want to port it to C++, what is the best approach?
Instead of Object use for example pointers to void? Templates?
Thanks
If I have for example the following method in Java and want to port it to C++, what is the best approach?
Code: Select all
void Algorithm::setInputParameter(std::string name, Object object) { ..... }
Thanks