Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
        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());
        }