Skip to content

Commit 52d6e20

Browse files
committed
Readd File to Index#324
1 parent 749880e commit 52d6e20

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • delegation/src/main/java/com/iluwatar/delegation/simple/printers
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.iluwatar.delegation.simple.printers;
2+
3+
import com.iluwatar.delegation.simple.Printer;
4+
5+
/**
6+
* Specialised Implementation of {@link Printer} for a HP Printer, in
7+
* this case the message to be printed is appended to "HP Printer : "
8+
*
9+
* @see Printer
10+
*/
11+
public class HpPrinter implements Printer {
12+
13+
/**
14+
* {@inheritDoc}
15+
*/
16+
@Override
17+
public void print(String message) {
18+
System.out.println("HP Printer : " + message);
19+
}
20+
21+
}

0 commit comments

Comments
 (0)