Instance Bindings
我们在前面例子 Android RoboGuice 使用指南(4):Linked Bindings 时为简单起见,定义 MyRectangle 和 MySquare 时为它们定义了一个不带参数的构造函数,如 MyRectangle 的如下:public class MyRectangle extends Rectangle{ public MyRectangle(){ super(50,50,100,120); } public MyRectangle(int width, int height){ super(50,50,width,height);
欢马劈雪