desing patterns is the technic or solution reocuring of problem solution.
ex:
singleterndesign pattern.
the code for singleterndesing pattern is
private singleternclass c;
static{
//code to required design
}
public static singleternclass get(){
return singleturnobject();
}
}
when we requried same object no of time we can get by using method get
SingleternClass object =get();
|