The object-oriented thinking method is actually the way of thinking we get used to in real life, starting from the perspective of human consideration, the process of translating human thinking for solving problems into a way of thinking that can be understood by the program. In this process, the software is gradually designed.
In the process of using object-oriented thinking methods for software design, the most common mistake is to start the analysis and think about the details of program code implementation, therefore, the encapsulated class is based entirely on the program implementation logic, rather than the problem-solving business logic.
The above content is taken from the big talk design model-wu Qiang
In the process of learning programming at the beginning, I often care too much about the effect. I usually think of many program code implementation details, ignoring the business logic for solving the problem. Therefore, train your Object-oriented Thinking and solve problems through Object-oriented thinking.