=========================haiou configuration==========================
haiou = new HaiOu{
IFisherCast fisher = new FisherCastAnimalImpl();//haiou is animal
}
=========================xiaoming configration============================
xiaoming = new Human(
IFisherCast fisher = new FisherCastHumanImpl(); //xiaoming is human
IDriverCast driver = new DriverCastCarImpl() // xiaoming driver car
IFishSeller fishSeller = new FishSellerImpl( IDriverCast driver = new DriverCastCarImpl); //xiaoming sell fish by car
)
=========================xiaowang old configration============================
xiaowang_old = new Human{
IFisherCast fisher = new FisherCastHumanImpl(); //xiaowang is human
IDriverCast driver = new DriverCastBycleImpl; // xiaowang cannot drive car before xiaoming taught him
IFishSeller fishSeller = new FishSellerImpl( IDriverCast driver = new DriverCastBycleImpl); //xiaowang sell fish by bycle before he learned driving car
)
=========================xiaowang new configration============================
xiaowang_old = new Human{
IFisherCast fisher = new FisherCastHumanImpl(); //xiaowang is human
IDriverCast driver = new DriverCastCarImpl; // xiaowang can drive car now
IFishSeller fishSeller = new FishSellerImpl( IDriverCast driver = new DriverCastCarImpl); //xiaowang sell fish by car now
)