In a class definition with 10 methods, to make the class maximally cohesive number of connections required among the methods are-
- A.90
- B.100
- C.10
- D.45
Show answer
Answer: D. 45
Maximum cohesion connections for n methods is n*(n-1)/2 = 10*9/2 = 45.
Answer: D. 45
Maximum cohesion connections for n methods is n*(n-1)/2 = 10*9/2 = 45.