ps0
Class HolaWorld

java.lang.Object
  extended by ps0.HelloWorld
      extended by ps0.HolaWorld

public class HolaWorld
extends HelloWorld

HolaWorld is like HelloWorld except it can say hello in Spanish!


Field Summary
static String spanishGreeting
          Greeting in Spanish
 
Constructor Summary
HolaWorld()
           
 
Method Summary
 String getGreeting()
           
static void main(String[] argv)
          Shows what happens when the getGreeting() method of both HelloWorld and HolaWorld are invoked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

spanishGreeting

public static final String spanishGreeting
Greeting in Spanish

See Also:
Constant Field Values
Constructor Detail

HolaWorld

public HolaWorld()
Method Detail

main

public static void main(String[] argv)
Shows what happens when the getGreeting() method of both HelloWorld and HolaWorld are invoked


getGreeting

public String getGreeting()
Overrides:
getGreeting in class HelloWorld
Returns:
Returns a greeting (in Spanish).