Work on Dependency Injection example.

This commit is contained in:
Ilkka Seppala
2015-05-22 23:29:50 +03:00
parent ebcf46af86
commit 8b9e829b09
4 changed files with 28 additions and 0 deletions
@@ -0,0 +1,10 @@
package com.iluwatar;
public class Wizard {
private OldTobyTobacco tobacco = new OldTobyTobacco();
public void smoke() {
tobacco.smoke();
}
}