Created
September 24, 2015 23:08
-
-
Save ekumachidi/909d6c0e5b73d5f7e502 to your computer and use it in GitHub Desktop.
This file contains 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
interface Printable{ | |
//it possesses no functonality within the methods. | |
//It just contains method signatures. | |
void Print(); | |
void printToPDF(String filename); | |
} | |
class MyClass implements Printable{ | |
public void Print(){ | |
// add functionality | |
} | |
public void printToPDF("example.txt"){ | |
// add Functionality | |
} | |
//additional functionality | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment