从许多关于敏捷开发的话题来看,我也是清洁代码的忠实粉丝,但是下面的代码让我毛骨悚然。看起来是这样的:
A类:
public class A{
private B = new B();
}
乙级:
private class B{
private ArrayStore aS;
//other private fields
private Constructor(){
as = new ArrayStore();
//initializing other private fields
}
private void