Timeline for Instantiating a class implementing an interface
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 1, 2011 at 21:24 | vote | accept | Captain Jack sparrow | ||
| Dec 1, 2011 at 21:24 | vote | accept | Captain Jack sparrow | ||
| Dec 1, 2011 at 21:24 | |||||
| Dec 1, 2011 at 20:49 | comment | added | pdr | @BalusC: See my answer to programmers.stackexchange.com/questions/81838/…. Victor is absolutely correct. | |
| Dec 1, 2011 at 20:44 | comment | added | yannis |
quite "endorsed" by design gurus, so to speak is not a good enough reference for your answer. Who are these gurus? Can you provide sources that they endorse the Factory pattern for situations similar to the question? Can you provide any reference or reasoning for why you suggest the Factory pattern?
|
|
| Dec 1, 2011 at 20:40 | comment | added | Victor Sorokin |
Well, I'm not sure, but Wikipedia page I've linked shows Java snippets very similar to OP's (e.g., ImageReader example).
|
|
| Dec 1, 2011 at 20:37 | history | migrated | from stackoverflow.com (revisions) | ||
| Dec 1, 2011 at 20:36 | history | answered | Victor Sorokin | CC BY-SA 3.0 |