3 votes 3 votes In a class definition with $10$ methods, to make the class maximally cohesive, number of direct and indirect connections required among the methods are $90,0$ $45,0$ $10,10$ $45,45$ IS&Software Engineering isro-2020 is&software-engineering normal + – Satbir asked Jan 13, 2020 edited Apr 11, 2020 by go_editor Satbir 2.4k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes To make the class maximally cohesive, every method should be related to every other method. It is like a complete graph of 10 vertices. i.e., n(n-1)/2 10(9)/2=45, and all these were direct connections hence option b is the answer Vignaneswarkrishna answered Jan 14, 2020 Vignaneswarkrishna comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments logan1x commented Jan 25, 2020 reply Follow Share In indirect connections, there won't be a node connected to any other node, so there is no relation b/w two modules. Is that why there can't be Indirect cohesive classes? 0 votes 0 votes Vignaneswarkrishna commented Jan 25, 2020 reply Follow Share no, I am thinking it as a complete graph with n nodes, in the complete graph there won't be any indirect connections, every node is connected directly with one another 0 votes 0 votes logan1x commented Jan 25, 2020 reply Follow Share Okay understood. Thanks I think in your meaning of indirect was A→b→c so a to c is indirect connection, but every node is connected to each other than there is no indirect. 0 votes 0 votes Please log in or register to add a comment.