使用这些简单的类:
public class Class_A
{
// no fields
}
public class Class_B extends Class_A
{
public float field_1;
public String / int / float / etc...; // dozens of fields
public int field_N;
}
public class Class_C extends Class_A
{
public int field_1;
public String / int / float / etc...; // dozens of fields
public String field_N;
}
public class Class_D
{
public Class_B class_B;
public Class_C class_D;
}
1)是否可以使用Class_A中的反射包裹Class_B / Class_C?怎么样?
2)如何包裹Class_D?
3)如何在将Intent传递给Activity后从Intent“重新安装”Class_D?