![Quote](images/metro/blue/misc/quote_icon.png)
Originally Posted by
canobic
@yanong_banikanhon, as to your question what a Factory pattern is and what IOC is, well... there are plenty of resources available in the web. A simple Google search will do the trick. But here's a simple example...
Consider the difference when using the Factory pattern:
....
And this one with (IOC) Dependency Injection in Spring...
Bay canobic, ang rason maong nangutana ko sa imo sa kalainan sa
Factory ug
IoC is because you are mixing these things together. Please have a look at your example above. I specifically asked you about
IoC but you gave an example on
DI (dependency injection). Maglibog gyud ang mobasa ana, bay. Gawas kun imong i-explain ang koneksyon aning duha. Mao nga since na-mention naman nimo dinhi ang
Factory pattern,
Inversion of Control ug
Dependency Injection , please explain these terms in layman's terms. Unsa ang kalainan aning tulo? Unsa may koneksyon nila sa interface?
Kun atong matubag ng mga pangutanaha, siguro daghan pud ang makat-on (inay malibog) dinhi. Please don't just provide wikipedia or google link just like the other poster have done.