Week 4: More About Classes and Objects
Overloading
Inheritance
Multilevel Inheritance
Multiple Inheritance
Overriding Methods
Adding New Methods to Subclasses
static
final
abstract
Interfaces
The Class Library
Using a class from the class library
Importing Classes
Short Names
Bulk Imports
java.lang.Math
java.util.Date
java.util.Random
java.lang.String
java.lang.Object
The toString() method()
The equals() method
The hashCode() method
The clone() method
Wrapping Your Own Packages
JAR archives
Runnable JAR files
Inner Classes
What is an exception?
try-catch
finally
The different kinds of exceptions
Multiple catch clauses
The throws clause
Throwing exceptions
Writing your own exception classes
Exercises
Start
|
Top
Last Modified June 17, 1999
Copyright 1997-1999 Elliotte Rusty Harold
elharo@metalab.unc.edu