Java Programming   Java Programming
 |Sofia Home | Content Gallery |
Home
Syllabus
Schedule
Lessons
Assignments
Resources

Lesson 4 - Data and Object Attributes

Objects consist of both attributes and methods. In this lesson you'll learn about the different kinds of methods you can write. You'll also learn how to add new methods to your classes. Finally, you'll learn how to redefine your applet's paint() method.

Lesson 4 sections are as follows:

4.1 Simple Methods

Learn about method relationships, creating simple methods, and the call stack.

4.2 Producing Values

Learn about methods that produce primitive and object values.

4.3 Arguments Learn how to pass simple and complex arguments to your methods.
4.4 Other Methods

Learn about overloaded methods and static fields and methods.

4.5 The paint() Method

Learn about the applet life-cycle and how to paint text on the surface of your applet.

4.6 Random Numbers

Learn about Java's packages and two different ways to create random numbers.

Continue with section 4.1 Simple Methods

Back to Top
Content Developed by Stephen Gilbert, Licensed under a Creative Commons License
Published by the Sofia Open Content Initiative
© 2004 Foothill-De Anza Community College District &The William and Flora Hewlett Foundation