I have implemented a class in C++. I want to use it with Python. Please suggest step by step method and elaborate each step. Somthing like this...
class Test{
private:
int n;
public:
Test(int k){
n=k;
}
void setInt(int k){
n = k;
}
int getInt(){
return n;
}
};
Now, in Python
>>> T1 = Test(12)
>>> T1.getInt()
12
>>> T1.setInt(32)
>>> T1.getInt()
32
Please suggest.How can I do this ? NOTE: I would like to know manual way to do that. I don't want any third party library dependency.