Payment and ParkingTicket has two-way association with each other, then why Payment class does not have object of ParkingTicket.
And why ParkingTicket has objects of Entrance and Exit classes since they are not even having association relation between each other?
It will be helpful if anyone can clarify this. Thank you.
For Reference : public class ParkingTicket {
// Following are the instances of their respective classes
private Vehicle vehicle;
private Payment payment;
private Entrance entrance;
private Exit exitIns;
}