A Code Example
public static void main(String [] args) {
NiceFellow fabian = new NiceFellow("Fabian");
fabian.addShadow(new SmileShadow());
fabian.call("printMood");
A shadow is created and added to the fabian object.
The shadow defines the smile method.
public class SmileShadow extends com.perisic.shadow.Shadow {
public void smile(Integer howMuch) {
System.out.println(shadowOwner().call("getName")+
" is laughing out loud!");
shadowOwner().call("setHappyness",
(Integer) shadowOwner().call("getHappyness")+howMuch);