public class HolaWorld extends HelloWorld
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SPANISH_GREETING
Greeting in Spanish
|
GREETING
Constructor and Description |
---|
HolaWorld() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGreeting() |
static void |
main(java.lang.String[] args)
Shows what happens when the getGreeting() method of both HelloWorld and HolaWorld are invoked
|
public static final java.lang.String SPANISH_GREETING
public static void main(java.lang.String[] args)
args
- command-line arguments (ignored)public java.lang.String getGreeting()
getGreeting
in class HelloWorld