Results 1 to 3 of 3
- 11-23-2009, 07:18 AM #1
Member
- Join Date
- Feb 2009
- Posts
- 96
- Rep Power
- 0
confusion with Design Pttern in java
Hi to all, Iam learning Design patterns in java, i have a doubt with Design Pattern,Design pattern defined as open for source to extension and closed for
modification.I didn't see any difference between this pattern and Observer Pattern or Strategy Pattern,we can use this Pattern instead of Design Pattern why it is introdused and what is mean by closed for modification in source from which we are extending.
- 11-23-2009, 07:34 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Closed for modification implies that you don't have any need to modify the original source code; open for extension means that you can add functionality to the pattern (mostly done through extension of classes).
You can't do both with the Observer/Observable pattern. The other pattern is ususally implemented as a 'framework'.
kind regards,
Jos
- 11-23-2009, 07:45 AM #3
Member
- Join Date
- Feb 2009
- Posts
- 96
- Rep Power
- 0
Similar Threads
-
Java design patterns
By ajeeb in forum New To JavaReplies: 4Last Post: 03-03-2009, 05:10 PM -
Java Design Problem
By hencre in forum Advanced JavaReplies: 2Last Post: 02-25-2009, 07:08 AM -
overall design of a java application
By willemjav in forum New To JavaReplies: 2Last Post: 08-19-2008, 11:37 PM -
A few questions about Java and design
By ldb88 in forum New To JavaReplies: 4Last Post: 12-07-2007, 12:51 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks