Announcements

6/30/99


Click here to start


Table of Contents

Announcements

Today�s Topics

Review

Review Example 1

Review Example 2

Rewrite of Previous example:

Review: Formatting Output

Why Classes?

More examples

Declaring a class in Java

Type declarations -- Class declarations

Take a breath

Creating a class instance

Referencing fields

Assigning to fields

Instance1 = Instance2 ??

What if you want to copy?

Methods of Classes

Return types of methods

Returns

Method calls

Example

Another example

Author: millett

Email: millett@cs.cornell.edu

Home Page: http://www.cs.cornell.edu/cs100-su99/

Other information:
CS 100 Summer 1999 Lecture Notes