Last active
December 10, 2015 10:18
-
-
Save numa08/4420015 to your computer and use it in GitHub Desktop.
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
public class Display { | |
public static void main(String[] args) { | |
Display display = new Display(); | |
Outputalbe data = new Profile("numa08", 24); | |
display.out(data); //Hey I am numa08 and , I'm 24 old. | |
} | |
private void out(Outputalbe data) { | |
System.out.println(data.output()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment