Download presentation
Presentation is loading. Please wait.
1
Haidong Xue Summer 2011, at GSU
Principles of Computer Programming (using Java) Chapter 3 Classes and Objects Haidong Xue Summer 2011, at GSU
2
Content Quiz2 Assignment3 Classes
3
Quiz 2 1:50pm – 2:00pm
4
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
5
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
6
Examples HaydonsWorld.java PersonsInCSC2310.java Data: (nothing)
Actions: main(…) PersonsInCSC2310.java Data: … Actions: …
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.