david.segonds.org Chronicles of an Agile Software Development Manager

11Nov/090

Object Oriented Programming: Law of Demeter

ur-ban.com has an article describing in details the Law of Demeter. The law states that a method M of and object O may only invoke the methods of the following kind:
1. a method on O itself
2. any parameters passed to M
3. any objects instantiated within M
4. any direct components of O

[ via ur-ban.com]

  • del.icio.us
  • Google Bookmarks
  • StumbleUpon
  • Digg
  • Twitter

No related posts.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.