Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

coupled classes

 
Arun Prasath
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is tightly coupled and loosely coupled classes?
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try WikiPedia for computer science concepts. They do a far better job of explaining things than I would.

That said, the first time I put "coupling" in the WikiPedia search I got mechanical couplings with no link to computer science coupling. It can take a bit of digging around.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically, the more tightly coupled A and B are, the more likely it is that if you change A, you will also have to change B.

Does that help?
 
Muhammad Ahsan Jamshaid
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let A and B are 2 highly coupled classes...

Then change in A would highly affect the class B... mean B is much dependent upon A....

Degree of Coupling depends upon the degree of interdepndence b/w A&B...

More A and B are indpendent of each other less would be Coupling among them.

--Jamshaid..
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For example, Muhammad's post is tightly coupled to Ilja's.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic