Created
June 12, 2014 16:37
-
-
Save meyerzinn/9cde7460972382e58fe5 to your computer and use it in GitHub Desktop.
TextMessage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package inheritance; | |
public class TextMessage extends Message { | |
String text; | |
public String getText() { | |
return text; | |
} | |
public void setText(String t) { | |
text = t; | |
} | |
public void printMessage() { | |
System.out.println("Message text: " + text); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment