vendredi 22 septembre 2017

How to force a method to call specific methods in [on hold]

I have a create method in a class and while calling this create method, I have to call 3 another methods.

How can I bind it to call 3 methods necessarily. like below:

class createjob{

    create(){
    doProcessA();
    doProcessB();
    doProcessC();
    }

    delete(){
    doTaskA();
    doTaskB();
    doTaskC();
    }

    }

Aucun commentaire:

Enregistrer un commentaire