Example of using C++ classes from Java