Lets assume we have a class A
, and 2 subclasses of this class - class A1
and class A2
If we do not know if an object coming in is of type A1 or A2, we do something like: object = incomingObject as A
Is this still using the Facade design pattern? Or is there a different name for this pattern?(maybe just simple inheritance)
Aucun commentaire:
Enregistrer un commentaire