calling super within virtual method

 
class A {
        public:
                virtual void doJob(){ Print("Job A");};
}

class B: public A {
        public:
                virtual void doJob(){ super.doJob(); Print("Job B");};
}

B b();
b.doJob();
//Job A
//Job B

Is it possible to do something like this ?

How to implement a method which inherits behavior from super class and does some additional job?

 
dan007:

Is it possible to do something like this ?

How to implement a method which inherits behavior from super class and does some additional job?

There is no super in MQL, you have to name the class explicitly, i. e. A::doJob();

The 'virtual' keyword has no effect on this particular behaviour.