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