Forum

Can't inherit a base class with parameterized constructor

Hi, I've been looking for this answer in the forums but most articles and topics are dated since MQL5 accepted only the default class constructor. Now it is possible to have different constructors with different parameters. But, try to inherit a base class whose only constructor has arguments: class

Class A reference Class B and the other way round

Hello, I don't know how to make a forward reference between two classes (contained in two different files): [file A.mqh] #include "B.mqh" class A { B* myclassB; }; [file B.mqh] #include "A.mqh" class B { A* myclassA; }; Clearly this won't compile as the declaration "myclassA" is defined as