public class CanonDriver implements Printable { public void print (Object obj) { // code that does the printing } }