Introduction to OOP
What is Object Oriented Programming?
What is Object Oriented Programming?
Example 1: The Car Class
Constructing objects with new
The Member Access Separator .
Using a Car object in a different class
Initializing Fields
Methods
Invoking Methods
Implied this
Member Variables vs. Local Variables
Passing Arguments to Methods
Passing Arguments to Methods, An Example
Setter Methods
Using Setter Methods, An Example
Returning Values From Methods
Returning Multiple Values From Methods
Using Getter Methods, An Example
Constructors
Constructors
Using Constructors
Constraints
Access Protection
Examples of Access Protection
Examples of Access Protection
The Four Levels of Access Protection
The Three Benefits of Access Protection
Changing the Implementation
What should be public? What should be private?
Further Examples: Money
Angles
Complex Numbers
Course Registration
A Genealogy Database
Week 3 Exercises
Start
|
Cafe au Lait
Copyright 1997-2003 Elliotte Rusty Harold
Last Modified April 19, 2003