Last active
March 5, 2020 21:52
-
-
Save Chiamaka/1cbb908833ee2d02f239 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