0

I have some c++ class:

class Test{
  public:
    int a,b,c;
    Test(){
        a=b=c=3;
    }
};

How to use it in jvm? Like:

public static void main(String[] args){
    System.loadLibrary("Test")
    Test t=new Test();
    System.out.println(t.a+" "+t.b+" "+t.c);
}

In all examples that I found methods been are static-like, non dependent on instance

walnut
  • 21,629
  • 4
  • 23
  • 59
hohserg
  • 382
  • 3
  • 9

0 Answers0