I have a situation here... I want to design a Factory where I can call a function with same name and no parameters but return different data Types. Based on the SubClassName I need to instantiate the Object.
Need help or lead on any design pattern to follow?
Aucun commentaire:
Enregistrer un commentaire