我有 2 个代码块
1
Class Employee
{
Address address;
Employee()
{
address=new Address();
}
}
2
Class Employee
{
Address address;
Employee(Address address)
{
this.address=address;
}
}
那么,为什么第二个块是松耦合的,而第一个块是紧耦合的,为什么第一块比第二块更难测试和维护。