Skip to content

Instantly share code, notes, and snippets.

@arjunsk
Created August 17, 2018 18:22
Show Gist options
  • Save arjunsk/1ead06c3e4222f6fbfe3dd570f075add to your computer and use it in GitHub Desktop.
Save arjunsk/1ead06c3e4222f6fbfe3dd570f075add to your computer and use it in GitHub Desktop.
package products;
public class LaserPrinter implements IPrinter {
@Override
public void print(String data) {
System.out.println("Laser Actions performed on "+data);
}
@Override
public boolean stop() {
//perform action and then return true on success
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment