back to cs202-syllabus

CS202 - Teaching Material - Winter 2006

Contents

  1. 1/4/06: Introduction to classes and objects. Abstract Data Types: specification and implementation in Java. Class types. Instantiation of a class. Encapsulation and Information hiding. Example: class Point.

    Textbook: 7 (all), 8.1-8.8, 8.15-8.17.



  2. 1/9/06: Review on arrays, classes and objects. Organizing classes into packages.

    Textbook: 8 (all). Exercise: matrix multiplication.



  3. 1/11/06: In-class test.


  4. 1/18/06: Inheritance. Protected members. Constructors in subclasses. Dynamic binding and polymorphism. GUI: use of AffineTransform. Drawing shapes on a JPanel. Graphics contexts. JFrames.


  5. 1/23/06: Access modifiers: private, protected, public and default (no modifier). Classes, Abstract classes and Interfaces. GUI: the Timer class, the ActionListener interface. Containers and Layouts.


  6. 1/25/06: Overview on Layouts and JComponents: Container, contentPane, BorderLayout, FlowLayout, GridLayout, JButton, JTextField, JLabel, JPanel, JFrame. Drawing on a JPanel. Registering event handlers with JComponents. Implementing interface ActionListener.


  7. 1/30/06: Class variables and class methods. Static declarations. Inheritance, polymorphism and dynamic binding. Signatures. Method overriding and method overloading. Implementing interfaces. Lab: review of pg2-2.


  8. 2/1/06: Use of JBuilder. Lab: continuation of pg3 and design of pg4.


  9. 2/6/06: Continuation of Laboratory activity.


  10. 2/8/06: Design of pg4: Lists, LinkedLists and Iterators. The equations of the uniformly accelerated motion. Lab: review of pg3.


  11. 2/13/06: Development of pg4. Use of LinkedLists, Iterators and the for-each loop statement.


  12. 2/15/06: Midterm Examination.


  13. 2/20/06: Exceptions in Java. Try-statements. Checked and unchecked exceptions. Throwing and handling exceptions.


  14. 2/22/06: More on the use of class AffineTransform. Development of the CannonBall project.


  15. 2/27/06: Files in Java. Files and streams. Standard streams. Byte-based streams and character-based streams. Classes Scanner and Formatter. Reading and writing textfiles. Serialization. Classes ObjectInputStream and ObjectOutputStream.


  16. 3/1/06: Review of the midterm examination.


  17. 3/6/06: Strings in Java. Preparation to the final exam. Evaluating polynomials on a point. The Horner's method. Converting a string into a number.


  18. 3/8/06: Completion of pg5.


  19. 3/13/06: Review of pg5.

Packages

Important Deadlines

Assignments

  1. 1/4/06: cs202-w06-PG1 (due Monday, January 9, 2006, at the beginning of class).
  2. 1/11/06: cs202-w06-ts1 (due Wednesday, January 11, 2006, at the end of class). In class.
  3. 1/18/06: cs202-w06-pg2-2 (due Wednesday, January 25, 2006, at the beginning of class).
  4. 1/25/06: cs202-w06-pg3 (due Wednesday, February 1, 2006, at the beginning of class).
  5. 2/1/06: cs202-w06-pg4. Due Wednesday, February 22, 2006, at the end of class.
  6. 2/27/06: cs202-w06-pg5. Due Wednesday, March 8, 2006, before class (final project). Deadline extended to Monday.