ps0
Class HolaWorld
java.lang.Object
ps0.HelloWorld
ps0.HolaWorld
public class HolaWorld
- extends HelloWorld
HolaWorld is like HelloWorld except it can say hello in Spanish!
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 |
spanishGreeting
public static final String spanishGreeting
- Greeting in Spanish
- See Also:
- Constant Field Values
HolaWorld
public HolaWorld()
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).