2

Possible Duplicate:
The Open/Closed Principle

I can understand that Open/Close principle suggests that

"You should be able to extend the class behaviour, without modifying it"

What does here open and close mean?

Community
  • 1
  • 1
ASP.netBeginner
  • 203
  • 4
  • 6
  • 1
    Just guessing... open to extension, closed to modifying – Nelson Rothermel Jan 12 '11 at 18:52
  • 1
    Really good article: http://www.lostechies.com/blogs/chad_myers/archive/2008/03/07/pablo-s-topic-of-the-month-march-solid-principles.aspx – Justin Williams Jan 12 '11 at 18:52
  • 3
    I think the reason it isn't a total duplicate is because it's really a question about the English language words as used in this context. The words are chosen to appear contradictory, making it hard to parse the meaning. – S.Lott Jan 12 '11 at 19:00
  • @Justin Williams :The article you referred is very good to read,thank you very much for sharing. – ASP.netBeginner Jan 12 '11 at 19:12

1 Answers1

3

Open to extension.

Closed against update/change/modification.

http://en.wikipedia.org/wiki/Open/closed_principle

It's pretty clear in the wikipedia article.

S.Lott
  • 384,516
  • 81
  • 508
  • 779