public override string ToString() { var sb = new StringBuilder(); sb.AppendLine("Balance: " + this.Balance) .AppendLine("Monthly interest rate: " + this.MonthlyInterestRate) .Append("Customer: " + Customer.ToString()); return(sb.ToString()); }
public override string ToString() { var text = new StringBuilder(); text.AppendLine("Account: " + this.AccountType) .AppendLine("Balance: " + this.Balance) .AppendLine("Interest per month: " + this.InterestPerMonth) .AppendLine("Customer:" + Customer.ToString()); return(text.ToString()); }