As any other member, in the constructor, what is the problem ?
//Constructor 1 B(string aString) : A(sString) {} //Constructor 2 B(void) : A("default") {}
Please read the documentation before asking on the forum.
Use pointer A*a, and then in the B constructor a=new A("asd");
Use pointer A*a, and then in the B constructor a=new A("asd");
thanks
then when I want to access a member `A`, `a->member` doesn't seem to work. is it safe to use `a.member` ? this compiles fine but i haven't run the code to test if it is valid or do I need to `(*a).member` (which also compiles fine) ?
thanks
then when I want to access a member `A`, `a->member` doesn't seem to work. is it safe to use `a.member` ? this compiles fine but i haven't run the code to test if it is valid or do I need to `(*a).member` (which also compiles fine) ?
Please read the documentation before asking on the forum !
mql is not C++, there is no real pointer as in C++. mql is running in a managed environment, you can't manipulate memory directly with mql.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use