Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Foldertype "Application"
#5
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 :?: :? Confusedhock:

Anyway to illustrate what i mean see the below:
(This is non-workable code because its a mix of QM and C++)
Code:
Copy      Help
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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)