Skip to content

Instantly share code, notes, and snippets.

@Chiamaka
Last active March 5, 2020 21:52
Show Gist options
  • Save Chiamaka/1cbb908833ee2d02f239 to your computer and use it in GitHub Desktop.
Save Chiamaka/1cbb908833ee2d02f239 to your computer and use it in GitHub Desktop.
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