java程序设计教程(第七版)_JAVA程序设计教程(第七版)第7章

Copyright ?2012 Pearson Education, Inc.

Chapter 7

Object-Oriented Design

Java Software Solutions

Foundations of Program Design

Seventh Edition

John Lewis William Loftus

Object-Oriented Design

?Now we can extend our discussion of the design of classes and objects ?Chapter 7 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 –

GUI design and layout managers

Copyright ?2012 Pearson Education, Inc.

Outline

Software Development Activities Identifying Classes and Objects Static Variables and Methods Class Relationships Interfaces

Enumerated Types Revisited Method Design Testing

GUI Design and Layout

Copyright ?2012 Pearson Education, Inc.

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

Copyright ?2012 Pearson Education, Inc.

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

Copyright ?2012 Pearson Education, Inc.

Design

? A software design specifies how a program will accomplish its requirements

? A software design specifies how the solution can be broken down into manageable pieces and 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

Copyright ?2012 Pearson Education, Inc.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值