More Objects
Overloading
this in constructors
Operator Overloading
Inheritance
Inheritance
Inheritance: the Superclass
Inheritance: the Motorcycle subclass
Inheritance: The Car subclass
Multilevel Inheritance
Multiple Inheritance
Overriding Methods
Overriding Methods: The Solution
Adding Methods
Composition vs. Inheritance
Subclasses and Polymorphism
toString() Methods
Using toString() Methods
Rules for toString() Methods
Class or static Members
Class or static Members
Invoking static methods
When should a method be static?
The Java Class Library
The java.net package
Documentation for the class library
Reading the documentation for a class in the class library
Using a class from the class library
Importing Classes
Package Imports
Name Conflicts when importing packages
You don't need to import java.lang.*
The java.lang package
java.lang.Object
toString() Methods
Using toString() Methods
Rules for toString() Methods
The equals() method
The hashCode() method of java.lang.Object
java.lang.Math
Examples of java.lang.Math Methods
java.lang.Math
The final keyword
abstract
Interfaces
Implementing Interfaces
Implementing the Cloneable Interface
Wrapping Your Own Packages
Naming Packages
JAR archives
Runnable JAR archives
Inner Classes
java.util.Vector
java.lang.String
java.util.Random
java.util.Hashtable
Exceptions
What is an Exception?
What is an Exception?
try-catch
The finally keyword
The different kinds of exceptions
Catching multiple exceptions
Catching multiple exceptions
The throws keyword
Throwing Exceptions
Exception Methods
Writing Exception Subclasses
java.util.Date
java.util.Calendar
Week 4 Exercises
Start
|
Cafe au Lait
Copyright 1997-2006 Elliotte Rusty Harold
Last Modified September 30, 2003