Presentation is loading. Please wait.

Presentation is loading. Please wait.

Review CSC 171 FALL 2004 LECTURE 21. Topics Objects and Classes Fundamental Types Graphics and Applets Decisions Iteration Designing Classes Testing and.

Similar presentations


Presentation on theme: "Review CSC 171 FALL 2004 LECTURE 21. Topics Objects and Classes Fundamental Types Graphics and Applets Decisions Iteration Designing Classes Testing and."— Presentation transcript:

1 Review CSC 171 FALL 2004 LECTURE 21

2 Topics Objects and Classes Fundamental Types Graphics and Applets Decisions Iteration Designing Classes Testing and Debugging

3 Topics Interfacing and polymorphism Event Handling Inheritance Graphical User Interfaces Arrays

4 Objects and Classes To understand the concepts of classes and objects To realize the difference between objects and object references To become familiar with the process of implementing classes To be able to implement simple methods To understand the purpose and use of constructors To understand how to access instance fields and local variables To appreciate the importance of documentation comments

5 Fundamental Types To understand integer and floating-point numbers To recognize the limitations of the int and double types and the overflow and roundoff errors that can result To write arithmetic expressions in Java To use the String type to define and manipulate character strings To learn about the char data type To learn how to read program input To understand the copy behavior of primitive types and object references

6 Applets and Graphics To be able to write simple applets To display graphical shapes such as lines and ellipses To use colors To display text in multiple fonts To select appropriate units for drawing To develop test cases that validate the correctness of your programs

7 Decisions To be able to implement decisions using if statements To understand how to group statements into blocks To learn how to compare integers, floating-point numbers, strings, and objects To recognize the correct ordering of decisions in multiple branches To program conditions using Boolean operators and variables

8 Iteration To be able to program loops with the while, for, and do statements To avoid infinite loops and off-by-one errors To understand nested loops To learn how to process input To implement simulations

9 Designing Classes To learn how to choose appropriate classes to implement To understand the concepts of cohesion and coupling To minimize the use of side effects To document the responsibilities of methods and their callers with preconditions and postconditions To understand the difference between instance methods and static methods To introduce the concept of static fields To understand the scope rules for local variables and instance fields To learn about packages

10 Testing and Debugging To learn how to carry out unit tests To understand the principles of test case selection and evaluation To learn how to use logging and assertions To become familiar with the debugger To learn strategies for effective debugging

11 Interfaces and Polymorphism To learn about interfaces To be able to convert between supertype and subtype references To understand the concept of polymorphism To appreciate how interfaces can be used to decouple classes To learn how to implement helper classes as inner classes To understand how inner classes access variables from the surrounding scope To implement event listeners for timer events

12 Event Handling To understand the Java event model To install mouse and action listeners To accept mouse and text input To display frame windows To show text output in a text area with a scroll bar

13 Inheritance To understand how to inherit and override superclass methods To be able to invoke superclass constructors To learn about protected and package access control To understand the common superclass Object and to override its toString, equals, and clone methods

14 Graphical User Interfaces To use inheritance to customize panels and frames To understand how user interface components are added to a container To understand the use of layout managers to arrange user interface components in a container To become familiar with common user interface components such as buttons, text components, combo boxes, and menus To build programs that handle events from user interface components To learn how to browse the Java documentation

15 Arrays To become familiar with using array lists to collect objects To learn about common array algorithms To be able to use arrays To understand when to choose array lists and arrays in your programs To implement partially filled arrays To learn how to use two-dimensional arrays


Download ppt "Review CSC 171 FALL 2004 LECTURE 21. Topics Objects and Classes Fundamental Types Graphics and Applets Decisions Iteration Designing Classes Testing and."

Similar presentations


Ads by Google