2.2 Basics of Objects and Classes in Java

In this section you will learn how to work with objects and classes in Java.

The example that we use for this is the Letter class mentioned the previous section. The applet that we are going to build up is as follows:

When you press the button, the character a will change position and font size.