Skip to content

Instantly share code, notes, and snippets.

@ekumachidi
Created September 24, 2015 23:08
Show Gist options
  • Save ekumachidi/909d6c0e5b73d5f7e502 to your computer and use it in GitHub Desktop.
Save ekumachidi/909d6c0e5b73d5f7e502 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