logo资料库

SSD3 面向对象程序设计 pdf.pdf

第1页 / 共244页
第2页 / 共244页
第3页 / 共244页
第4页 / 共244页
第5页 / 共244页
第6页 / 共244页
第7页 / 共244页
第8页 / 共244页
资料共244页,剩余部分请下载后查看
[Trial version] SSD3: Object-Oriented Programming and Design
[Trial version] Unit 1. Class Design
[Trial version] 1.1 Java Applications
[Trial version] 1.1.1 Applications in Java
[Trial version] 1.1.2 Using Eclipse
[Trial version] 1.1.3 Beginning with the Java API
[Trial version] 1.1.4 Console I/O
[Trial version] 1.1.5 Exception Objects
[Trial version] 1.1.6 Code Conventions
[Trial version] 1.1.7 Javadoc
[Trial version] 1.1.8 Debugging
[Trial version] 1.1.9 Debugging with Eclipse
[Trial version] 1.2 Designing Classes
[Trial version] 1.2.1 UML Class Diagrams
[Trial version] 1.2.2 Relationships Between Classes
[Trial version] 1.2.3 Common Class Structures
[Trial version] 1.2.4 UML with Eclipse
[Trial version] 1.2.5 Modeling Classes
[Trial version] 1.2.6 Modeling the Library System
[Trial version] Unit 2. Class Implementation
[Trial version] 2.1 Implementing Classes
[Trial version] 2.1.1 Defining Classes
[Trial version] 2.1.2 Inheritance
[Trial version] 2.1.3 Method equals and Method toString
[Trial version] 2.1.4 Unit Testing
[Trial version] 2.1.5 Implementing the Library System
[Trial version] 2.2 Collections
[Trial version] 2.2.1 Arrays
[Trial version] 2.2.2 Vectors and Iterators
[Trial version] 2.2.3 Implementing Collections of the Library System
[Trial version] 2.3 Advanced Class Design
[Trial version] 2.3.1 Abstract Classes
[Trial version] 2.3.2 Polymorphism
[Trial version] 2.3.3 Interfaces
[Trial version] 2.3.4 Design Patterns
[Trial version] 2.3.5 Singleton Pattern
[Trial version] 2.3.6 Strategy Pattern
[Trial version] Unit 3. Advanced Class Implementation
[Trial version] 3.1 Input and Output Programming
[Trial version] 3.1.1 File I/O
[Trial version] 3.1.2 Using File I/O in the Library System
[Trial version] 3.2 Graphical User Interface
[Trial version] 3.2.1 Swing Components and Containers
[Trial version] 3.2.2 Swing Event Handling
[Trial version] 3.2.3 Class JFileChooser
[Trial version] 3.3 Toward Commercial Use
[Trial version] 3.3.1 For Continued Study
[Trial version] Practical Quiz
[Trial version] Practical Quiz 1
[Trial version] Practical Quiz 2
[Trial version] Practical Quiz 3
[Trial version] Practical Quiz 4
[Trial version] Practical Quiz 5
[Trial version] Practical Quiz 6
[Trial version] Practical Quiz 7
[Trial version] Practical Quiz 8
[Trial version] Practical Quiz 9
[Trial version] Multiple-Choice
[Trial version] Multiple-Choice Quiz 1
[Trial version] Multiple-Choice Quiz 2
[Trial version] Multiple-Choice Quiz 3
[Trial version] Multiple-Choice Quiz 4
[Trial version] Multiple-Choice Quiz 5
[Trial version] Multiple-Choice Quiz 6
[Trial version] Exercise
[Trial version] Exercise 1
[Trial version] Exercise 2
[Trial version] Exercise 3
[Trial version] Exercise 4
[Trial version] Exercise 5
[Trial version] Exercise 6
[Trial version] Exercise 7
[Trial version] Exercise 8
[Trial version] Getting and Installing EclipseUML
###E###
ABC Amber CHM Converter Trial version, http://www.processtext.com/abcchm.html 3. Knowledgeably Discuss 1. Advanced Object Oriented concepts 4. Hold Positions as Beginning Java Programmer 4. On successfully completing this course, the student will be able to (a) execute programming tasks such as extending the functionality of existing programs and improving the performance of existing program modules, (b) implement interactive GUIs in Java, (c) implement classes that exhibit a specified behavior, and (d) debug and correct programs that do not perform according to specification. ?Copyright 1999-2004, iCarnegie, Inc. All rights reserved. Page 2
###E###
###E###
###E###
ABC Amber CHM Converter Trial version, http://www.processtext.com/abcchm.html Figure 2 New Java Project dialog box 4. Eclipse will create a new Java project and display the Java perspective, one of the Eclipse interfaces for working on a Java project. The Java perspective offers a number of tools including a code editor, file browser, and class browser. Figure 3 Java perspective 5. You can change the perspective of the project. On the Window menu, point to Open Perspective and click the desired perspective. You can also click the desired perspective's icon on the shortcut bar at the far left of the window. Page 6
ABC Amber CHM Converter Trial version, http://www.processtext.com/abcchm.html Figure 4 Perspectives shortcut bar Create the Class 1. 2. On the File menu, point to New and then click Class. In the New Java Class wizard, type MyApplication in the Name box and then click Finish. Figure 5 New Class wizard 3. Eclipse will display a template for a new class named MyApplication. Page 7
ABC Amber CHM Converter Trial version, http://www.processtext.com/abcchm.html Figure 6 Template for a new class 4. On the Window menu, point to Open Perspective and then click Java Browsing. This perspective contains a Java editor and several views of the project. If the user clicks an element in the Types or Members view, the editor will display the code for that element. o The Projects view shows Java projects, source folders, external and internal libraries. o The Packages view lists the packages of classes in the selected project. o The Types view lists the classes in the selected package. o The Members view shows the variables and methods in the selected class. 5. Enter the code for MyApplication. Refer to Listing 2 on 1.1.1 Applications in Java. Figure 7 Code of MyApplication.java Page 8
分享到:
收藏