Coba jelasin Conto 3 dari Class (élmu komputer) dalam bahasa sunda dong

// This is a Java class, it automatically extends the class Object

This example shows the simplest Java class possible.

public class Example2 extends Example1

// This is a class that extends the class créated in Example 1.

// This is a constructor for the class.  It does not have a return type.

This example shows a class that has a defined constructor, one member data, and two accessor methods for that member data. It extends the previous example's class. Note that in Java all classes automatically extend the class Object. This allows you to write generic code to déal with objects of any type.