Haidong Xue Summer 2011, at GSU Principles of Computer Programming (using Java) Chapter 3 Classes and Objects Haidong Xue Summer 2011, at GSU
Content Quiz2 Assignment3 Classes
Quiz 2 1:50pm – 2:00pm
Classes and Objects Object model Declare a class State, behavior Declare a class Modifier, name, body Constructor (default) Overloading, signature Declare member methods Modifiers, return type, name, parameters, body Declare member variables
Classes and Objects Use classes Create instances of classes Object variables Modifiers (on classes; on member methods or member variables) Packages Declare the package which the class belongs to Use the classes in other packages
Examples HaydonsWorld.java PersonsInCSC2310.java Data: (nothing) Actions: main(…) PersonsInCSC2310.java Data: … Actions: …