tailieunhanh - Chapter 6 Object-Oriented Design
.Object-Oriented Design • Now we can extend our discussion of the design of classes and objects • Chapter 6 focuses on: software development activities determining the classes and objects that are needed | Chapter 6 Object-Oriented Design © 2004 Pearson Addison-Wesley. All rights reserved 6- Object-Oriented Design Now we can extend our discussion of the design of classes and objects Chapter 6 focuses on: software development activities determining the classes and objects that are needed for a program the relationships that can exist among classes the static modifier writing interfaces the design of enumerated type classes method design and method overloading © 2004 Pearson Addison-Wesley. All rights reserved 6- Outline Software Development Activities Identifying Classes and Objects Static Variables and Methods Class Relationships Interfaces Enumerated Types Revisited Method Design © 2004 Pearson Addison-Wesley. All rights reserved 6- Program Development The creation of software involves four basic activities: establishing the requirements creating a design implementing the code testing the implementation These activities are not strictly linear – they overlap and interact © | Chapter 6 Object-Oriented Design © 2004 Pearson Addison-Wesley. All rights reserved 6- Object-Oriented Design Now we can extend our discussion of the design of classes and objects Chapter 6 focuses on: software development activities determining the classes and objects that are needed for a program the relationships that can exist among classes the static modifier writing interfaces the design of enumerated type classes method design and method overloading © 2004 Pearson Addison-Wesley. All rights reserved 6- Outline Software Development Activities Identifying Classes and Objects Static Variables and Methods Class Relationships Interfaces Enumerated Types Revisited Method Design © 2004 Pearson Addison-Wesley. All rights reserved 6- Program Development The creation of software involves four basic activities: establishing the requirements creating a design implementing the code testing the implementation These activities are not strictly linear – they overlap and interact © 2004 Pearson Addison-Wesley. All rights reserved 6- Requirements Software requirements specify the tasks that a program must accomplish what to do, not how to do it Often an initial set of requirements is provided, but they should be critiqued and expanded It is difficult to establish detailed, unambiguous, and complete requirements Careful attention to the requirements can save significant time and expense in the overall project © 2004 Pearson Addison-Wesley. All rights reserved 6- Design A software design specifies how a program will accomplish its requirements That is, a software design determines: how the solution can be broken down into manageable pieces what each piece will do An object-oriented design determines which classes and objects are needed, and specifies how they will interact Low level design details include how individual methods will accomplish their tasks © 2004 Pearson Addison-Wesley. All rights reserved 6- Implementation Implementation is the process .
đang nạp các trang xem trước