It’s just that without cohesion, it will be very difficult to mange the functionality because they will be scattered in many wrong places as the complexity of the application increases over time. It is important to understand that not having cohesiveness does not mean that the overall application does not have the required functionality. On the other hand, if a class is performing a bunch of totally unrelated functionalities that means the class is not cohesive at all. If a certain class is performing a set of highly related functions, that class is said to be cohesive. Well structured classes lead to highly cohesive programs. These two software engineering metrics were developed by Larry Constantine to reduce the cost of modifying and maintaining software.Ĭohesion measures how strongly each of the functions are related within a program module. Actually, any object oriented language (including Java) has the two main objectives of increasing cohesiveness and decreasing the coupling at the same time, in order to develop most efficient programmes. Cohesion measures how strongly each of the functions are related within a module. ![]() Coupling measures how much each of the program modules are dependent on the other program modules. Coupling and cohesion are two concepts found in Java (and all other object oriented languages).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |