Example of variable and parameter scope in Confuse.java
Example (MS
Word) of Employee class, along with classes Date, EmployeeDemo, IODisplay
(See in-class examples for the source
code), and some further notes
on static methods and variables.
See also a few diagrams illustrating object
references and how they change
J# Example: Banking App example with file IO (from “2. The J# Language”)
GUIs and Object-Oriented Design
Introduction to GUIs: (Move to here the Visual Sorting SWING demo from “4. Component-based Programming”, comparing Swing to VS libraries)
Event-driven programming, code-behind, simple calculator, Winforms, controls
Winforms & Controls, Part 2: slideshow App, StudentInfo App, list box, Baby Browser Lab 4: GUI of Attendees App using arrays
Object-oriented Design with inheritance & interfaces (some simple UML )
Class Design 6 rules (needs to be expanded)
Inheritance , Polymorphism, Overriding equals (needs to be expanded)
Interfaces : design by contract, comparable interface (needs to be expanded) Lab 5: Object-Oriented Design: attendees App, sortable by different fields
AP Marine Biology Simulation (MBS)
Overview, Architecture, design, focus on Core classes (ppt, demos) Lab: Role-playing Lab: Running simulation, looking around the code, javadoc (instructions, all files)
Extending the MBS [new fish, environments, display] (ppt, demos) Lab: Adding Predator Fish, Circle Fish (instructions, all files)