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