- Code that wished it was in another class
- It uses data from another class
private Address currentAddress = null;
public string MailingAddress()
{
StringBuilder sb = new StringBuilder ();
sb.Append(*currentAddress.AddressLine1*);
sb.Append("\n");
sb.Append(*currentAddress.City* + ", " + currentAddress.State);
sb.Append("\n");
sb.Append(*currentAddress.PostalCode*);
return sb.ToString();
}
what kind of code is this
a. Speculative Generality
b. Feature Envy
c. Duplication