public BarLogic(FooLogic foo, int maxDepth, int maxWidth) { _maxDepth = maxDepth; _maxWidth = maxWidth; Register(Duck); Register(Horse); Register(Elephant); Register(Fox); Register(foo.Cat); Register(foo.Dog); Register(foo.Cow); Register(foo.Sheep); }