CIS 26
Object-Oriented Programming
Lecture 03 - The Java Language II

Statements

Class Declarations

Inheritance

A class can be declared to be an extension of another class
	class MyApplet extends Applet {
		...
	}

Composition as an Alternative to Inheritance

Consider Java's Stack class

Parameter Passing

Class (static) fields and methods

constants (final)

			class Color {
				Color(int r, int g, int b) {...}
				..
				
				static final Color RED = new Color(255, 0, 0);
			}
		

this

Interfaces