06-14-2006, 01:56 PM
uhmm i think you made some thinking errors there... :lol:
(or i mis-looked)
For good inherantacy should "class Class3 :Class1'c d" not be "class Class3 :Class1 c d" ?
because it looks like you are making a member c of type Class1 while at same time inhereting Class1 :?: :?
hock:
Anyway to illustrate what i mean see the below:
(This is non-workable code because its a mix of QM and C++)
Now user can only use Class1.FuncA(1) and have values output of private data...
(or i mis-looked)
For good inherantacy should "class Class3 :Class1'c d" not be "class Class3 :Class1 c d" ?
because it looks like you are making a member c of type Class1 while at same time inhereting Class1 :?: :?

Anyway to illustrate what i mean see the below:
(This is non-workable code because its a mix of QM and C++)
class MainClass {
private:
,struct {
,,ARRAY(POINT) a;
,,int b;
,} a;
protected:
,int b;
,void FuncA1 = function(&arg) { out arg.x arg.y b; };
public:
,void FuncA = function(arg) { FuncA1( a.a[arg] ); };
} Class1;
Now user can only use Class1.FuncA(1) and have values output of private data...
Well thats all for now, 3M