mercredi 7 juin 2017

Do the following make use of some design patterns?

Given

class ClassA
{
    void MethodA(ClassB ObjB) {...}
}

do the following make use of some design patterns:

class ClassC: ClassB
{
    void MethodC(ClassA ObjA) {ObjA.MethodA(this);}
}

and

class ClassD
{   
    ClassB _objB = new ClassB();
    void MethodC(ClassA ObjA) {ObjA.MethodA(this._objB);}
}

?

Thanks.

Aucun commentaire:

Enregistrer un commentaire