Work on the DI example. Added second Wizard with injected Tobacco.
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public class OldTobyTobacco implements Tobacco {
|
||||
|
||||
@Override
|
||||
public void smoke() {
|
||||
System.out.println(String.format("Smoking %s", this.getClass().getSimpleName()));
|
||||
}
|
||||
public class OldTobyTobacco extends Tobacco {
|
||||
}
|
||||
|
Reference in New Issue
Block a user