educative.io

Educative

Object Oriented Approach and mapping it to database tables

Hi Team,
Was going through the parking lot OO design, since the question mainly focuses on OO design, do we need to consider the database tables setup here?. As I see it will be difficult to map objects and saving their state in the table. Could you suggest how we can map the solution to DB table with above classes? as I am having a hard time to figure that out.

Thanks,
Sachin Bhat