Where is ParkingTicket()

Where is ParkingTicket() defined in ParkingLot class ?
ticket = ParkingTicket()

Type your question above this line.


Hey @Siddhant_Agarwal!
ParkingTicket has a composition relation with ParkingLot. We introduced a map of active tickets, all active parking tickets identified by their ticketNumber. ParkingTicket() is not a defined function. It is the default constructor.
We hope Educative has inspired you to further your learning. Thank you :slight_smile: