The android NDK supports c++, but does it support c++ classes?? If so can you give a simple example and the steps needed to implement the class with the java source.
+2
A:
The android NDK supports c++, but does it support c++ classes??
Yes. It supports C++ classes. Classes are fundamental in the language, and the support for classes is implicit when they state that they support C++.
If so can you give a simple example and the steps needed to implement it.
Not sure what you mean by this. Implement what? Implement classes in C++ or implement C++ applications for Android?
aioobe
2010-10-23 16:49:13
They do support c++. "The NDK allows you to implement parts of your applications using native-code languages such as C and C++" - http://developer.android.com/sdk/ndk/index.html
Will03uk
2010-10-23 16:51:39
....thus they support C++ classes.
aioobe
2010-10-23 16:53:53
...how though, I can't find out how...
Will03uk
2010-10-23 16:55:35
How would you expect them to support C++ without supporting classes??
aioobe
2010-10-23 17:04:52
C++ libarys and its not as easy as just creating a c++ application because when you use c with the ndk it needs special names and parameters.
Will03uk
2010-10-23 17:09:36