educative.io

Where is ParkingTicket()

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


Type your question above this line.

Course: https://www.educative.io/collection/5668639101419520/5692201761767424
Lesson: https://www.educative.io/collection/page/5668639101419520/5692201761767424/5770234338213888

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: