Skip to content
Snippets Groups Projects

Added FileHandling class for ItemRegister objects, and reworked ItemRegister with new subclasses

Merged Andreas Kluge Svendsrud requested to merge FileHandlingAndreas into master
13 files
+ 565
164
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -58,4 +58,14 @@ public class Expense extends Item{
}
this.category = expenseCategory;
}
/**
* Returns a String that represents the Expense.
* Also includes the ExpenseCategory
* @return The Expense as a String
*/
@Override
public String toString() {
return super.toString()+"\ncategory="+category.toString()+"\n";
}
}
Loading