- /**
- * Gives Girls unique output.
- *
- * @author TK Rogers
- * @version 7-28-11
- */
- public class Girls {
- // speaker is an
object or instance,
- // in this case an
object of the Girls class.
- public static
Girls speaker = new Girls ( ) ;
-
- // The segment of
code below is called a method,
- // in this case the talk
method.
- public void talk
( ) {
-
System.out.println ( "Hello from the Girls class."
) ;
- }
- }