When calculating Code Metrics, what is Class Coupling ?
Interview question and answer by: Akiii
| Posted on: 5/7/2012 | Category: ASP.NET Interview questions
| Views: 1045 | | Points: 40
Class Coupling measures the coupling to unique classes through parameters, local variables, return types, method calls, generic or template instantiations, base classes, interface implementations, fields defined on external types, and attribute decoration.
A Good software design dictates that types and methods should have high cohesion and low coupling.
High coupling indicates a design that is difficult to reuse and maintain because of its many inter-dependencies on other types.
Thanks and Regards
Found interesting? Add this to: