Class Expense

java.lang.Object
no.ntnu.idatt1002.spendwise.data.Transaction
no.ntnu.idatt1002.spendwise.data.Expense
Direct Known Subclasses:
RecurringExpense

public class Expense extends Transaction
Describes an expense using the Transaction class.
  • Constructor Details

  • Method Details

    • amountToString

      protected String amountToString()
      Returns the amount of the expense as a string with a minus sign in front of it, and currency notation.
      Specified by:
      amountToString in class Transaction
      Returns:
      The amount of the expense as a string representation.