473,396 Members | 1,714 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,396 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 1367
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....
33
by: Chris Capel | last post by:
What is the rationale behind the decision not to allow abstract static class members? It doesn't seem like it's a logically contradictory concept, or that the implementation would be difficult or...
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.