No. You're assuming that just because DAO uses an interface it is a Factory. The interface is just a way to decouple your code, and DAO pattern is mostly used to manage relational database access. Factory, on the other hand, is a creational pattern in which is defined how implementers of a a particular interface do the actual object creation.
posted 11 years ago
can you please explain this using example?i think it is very helpful.