Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
SE1011 Week 9, Class 1 Today Designing Code SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 1 Old Muddiest Points having multiple classes and the exact use of each one. Plus that, how can I figure which classes to create? More on what can or can't be passed to a method How do you know when to do this before you've completed writing the duplicate code? why make another class, when you can keep the variables in the main class? designing and using classes parameters designing classes static and main; designing classes 2 Discussed at start. Discussed during this class. [Instructor answer to the question] Design exercise: Consider the following problem: Write a program to help you find matching clothes for the day. The program should automatically suggest pairs of clothes. It should allow you to specify a pair of clothes. It should determine if a given pair of clothes matches. Top-down: Start with a method that does EVERYTHING and divide it into sub-tasks Bottom-up: Start with a method that does the simplest thing you can imagine and work up 3 SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 4 Acknowledgement This course is based on the text Introduction to Programming with Java by Dean & Dean, 2nd Edition SE-1011 Slide design: Dr. Mark L. Hornick Instructor: Dr. Yoder 5