/// <summary> /// Only for example. Its bad idea - we need constructor with such parameter /// </summary> public Car() { Stereo = new Stereo(); Engine = new Engine(); Transmission = new Transmission(); RocketBarrage = new RocketBarrage(); }
public LaunchRocket(RocketBarrage rocket) { _rocket = rocket ?? new RocketBarrage(); }