I will say that adding a Table class is a little extra that is not needed.
I broke a rule or two and moved a piece of data around,
you may not modify this file, but may move it if you wish
HS Thomas wrote:
...you may not modify this file, but may move it if you wish..
I haven't modified it, just re-interpreted the given Available Seats to mean Seat Capacity and stored Available Seats for a given Flight and Date in a different file , accessed by the same unchanged Data class.
as discussed here
if another table is added to the database
I've just taken it one step further and re-used the Data class to create another table/file
is essentially a table name. Though I'm not too happy with this as GUI views can get data from many sources.