Which of the following two methods is better? Or are there other better solutions? Discussion. 1. start with each specific function and write all the functions of the class in one method. After the test is passed, the entire function is divided into various methods of the class, and then tested. 2. first write out the class... which of the following two implementation methods is better? Or are there other better solutions? Discussion.
1. start with each specific function and write all the functions of the class in one method. After the test is passed, the entire function is divided into various methods of the class, and then tested.
2. write out the overall structure of the class and then fill in each function.
Reply content:
Which of the following two methods is better? Or are there other better solutions? Discussion.
1. start with each specific function and write all the functions of the class in one method. After the test is passed, the entire function is divided into various methods of the class, and then tested.
2. write out the overall structure of the class and then fill in each function.
Object-oriented custom class