mercredi 25 mars 2015

Design creational pattern suggestion

Does exist a creational pattern where I define the father class and every time I need an its child I can call its method to create them?


For example (meta-language):



class father (){
method1() {
new child1();
}
}
class child1 extend father (){}

Aucun commentaire:

Enregistrer un commentaire