Opening book details…
Can I read Class Design Principles and Practices on EtoBox?
Class Design Principles and Practices by sandarul is a document available to read on EtoBox.
What is Class Design Principles and Practices about?
1. A class should represent a single concept and be named as a noun describing that concept. Classes like Scanner and Random are called actor classes as they perform some work. 2. Utility classes have no objects but contain only static methods and constants, like the Math class. Methods should represent actions on objects, not actions themselves like "ComputePayChecks". 3. Classes should have high cohesion with all features related to the concept and low coupling with few dependencies between classes.
- Author
- sandarul
- Language
- EN