B
Boni
Dear all,
I would like to have an access from one class to the private variables of
other. But I also can't find a right sintax. The word "friend" seems to do
something else, VB compiler still complains.
-----C++--------
class A{
private:
int K;
}
class B{
friend class A;
void test(){
A oA;
A.K=10; //acccess private member
}
}
------VB----
Please help
I would like to have an access from one class to the private variables of
other. But I also can't find a right sintax. The word "friend" seems to do
something else, VB compiler still complains.
-----C++--------
class A{
private:
int K;
}
class B{
friend class A;
void test(){
A oA;
A.K=10; //acccess private member
}
}
------VB----
Please help