473,382 Members | 1,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Abstract factory and Factory pattern

C#
http://www.questpond.com/FreeDesign1.htm

I was going through the above videos. Can i conclude Abstract factory
patterns are extensions of factory patterns. I have made the
conclusion after viewing the video and reading GOF books. I am
confused by these two patterns.
Jul 28 '08 #1
4 1952
they are different but related.

the in factory pattern, the code calls the factory directly to create
objects.

in the abstract pattern, the abstract factory is called, and it
determines which factory to call to create the object.

-- bruce (sqlwork.com)

C# wrote:
http://www.questpond.com/FreeDesign1.htm

I was going through the above videos. Can i conclude Abstract factory
patterns are extensions of factory patterns. I have made the
conclusion after viewing the video and reading GOF books. I am
confused by these two patterns.
Jul 28 '08 #2
On Jul 28, 11:25*am, "C#" <surajfrommum...@yahoo.comwrote:
http://www.questpond.com/FreeDesign1.htm

I was going through the above videos. Can i conclude Abstract factory
patterns are extensions of factory patterns. I have made the
conclusion after viewing the video and reading GOF books. I am
confused by these two patterns.
I would suggest the Head First series and specifically the GOF
Patterns book. It is great at illustrating the patterns in a way that
makes things more clear. Frankly, the GOF book is one of those "need
a book about the book" kind of books.

Tal
Jul 28 '08 #3

The best illustration a book gave me for abstract was "build a computer".

It was a java book and I don't know which one it was.

However, I found this
http://blog.dotnetstyling.com/archiv...n-Pattern.aspx

which is similar.

"C#" <su*************@yahoo.comwrote in message
news:f8**********************************@q28g2000 prh.googlegroups.com...
http://www.questpond.com/FreeDesign1.htm

I was going through the above videos. Can i conclude Abstract factory
patterns are extensions of factory patterns. I have made the
conclusion after viewing the video and reading GOF books. I am
confused by these two patterns.

Jul 28 '08 #4
C#
On Jul 28, 11:16*pm, "sloan" <sl...@ipass.netwrote:
The best illustration a book gave me for abstract was "build a computer".

It was a java book and I don't know which one it was.

However, I found thishttp://blog.dotnetstyling.com/archive/2007/11/25/Abstract-Factory-Des...

which is similar.

"C#" <surajfrommum...@yahoo.comwrote in message

news:f8**********************************@q28g2000 prh.googlegroups.com...
http://www.questpond.com/FreeDesign1.htm
I was going through the above videos. Can i conclude Abstract factory
patterns are extensions of factory patterns. I have made the
conclusion after viewing the video and reading GOF books. I am
confused by these two patterns.- Hide quoted text -

- Show quoted text -
Thanks guys for your clarification
Jul 31 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Medi Montaseri | last post by:
Hi, Given a collection of similar but not exact entities (or products) Toyota, Ford, Buick, etc; I am contemplating using the Abstraction pattern to provide a common interface to these products....
4
by: max | last post by:
Hello, I analyze this design pattern for a long time but I do not understand how this pattern work and what the purpose is? (I looked a this site...
11
by: FluffyCat | last post by:
In Febraury - April of 2002 I put together in Java examples of all 23 of the classic "Gang Of Four" design patterns for my website. Partly I wanted to get a better understanding of those patterns....
2
by: Julia | last post by:
Hi, I have an application composed from layers like the following A --B ---C A is the top layer C uses an Abstract Factory to Create Concrete classes
3
by: Christer | last post by:
Hi all! We're creating an administration for a web application. This includes severeal aspx pages. Our key entity in the web application is "Profile", which can have a certain type. Based on...
16
by: RSH | last post by:
Hi, I am a fairly seasoned developer and have recently started looking at software design patterns. I am starting with the Abstract Factory Pattern and was wondering if someone could help me...
2
by: Duy Lam | last post by:
Hi everyone, Sorry, I don't know what group to post this problem, I think may be this group is suitable. I'm styduing DAO (Data Access Object) pattern in this link...
3
by: suresh_rai | last post by:
Hello I am hoping someone can give me very needed help. I am wanting some C+ + code for 'C++ Abstract Factory'. I need code to be free. I am been learning Design patterns. I found some code on...
4
by: C# | last post by:
http://www.questpond.com/FreeDesign1.htm I was going through the above videos. Can i conclude Abstract factory patterns are extensions of factory patterns. I have made the conclusion after...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.