java - Issue with Design Patterns recognition -



java - Issue with Design Patterns recognition -

i need help design patterns recognition. here java code

public class extend b { public (string arg1){ super(arg1); } public c newinstance(string arg2){ homecoming new c(arg1, arg2); } }

any ideas pattern it?

upd

public abstract class b { protected final string arg; public b(string arg) { this.arg = arg; } public string getarg() { homecoming arg; } }

it mill pattern because newinstance() creates instance of other class. there tip of abstract factory. posted fragment of question. mean b base of operations mill class, a 1 of mill implementations, newinstance() method creates instances of concrete class c.

edit

yes, sure agree @sotirios delimanolis: mill belongs grouping of creational patterns.

java design-patterns

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -