Class RecurringExpense


public class RecurringExpense extends Expense
Describes a recurring expense, inheriting from the Expense class.
  • Constructor Details

    • RecurringExpense

      public RecurringExpense(String name, String notes, String date, double amount)
      Constructor for a recurring expense.
      Parameters:
      name - Name of the expense.
      notes - Notes for the expense.
      date - Date of the expense. (Day of the month)
      amount - Amount of the expense.
  • Method Details

    • isWithinTimeFrame

      public boolean isWithinTimeFrame(LocalDate fromDate, LocalDate toDate)
      Returns whether the expense is within the given time frame.
      Overrides:
      isWithinTimeFrame in class Transaction
      Parameters:
      fromDate - The start date of the time frame.
      toDate - The end date of the time frame.
      Returns:
      True if the expense is within the time frame, false otherwise.