O O Design Coupling Depending Classes Good Thing Want Lots Cohesion Everything Class Goes Q37023043

In O-O design, coupling (depending on other classes) is a goodthing, you want lots of it, and cohesion (everything in a class“goes together”) is a bad thing, you want to minimize it as much aspossible. True/False?


Solution


Q) In O-O design, coupling (depending on other classes) is agood thing, you want lots of it, and cohesion (everything in aclass “goes together”) is a bad thing, you want to minimize it asmuch as possible.

Answer) False, because

Cohesion: It refers to what the class (or module) can do. Lowcohesion would mean that the class does a great variety of actions- it is broad,

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.