وعليكــم السـلام ورحمة الله وبركاتـه..
اخواني انا بادي بمشروع من فتره لكن المشكله وصلت لنقطه انا اصلا مافهمت السؤال فيها واتمنى منكم الله يجزيكم الف خير المساعده
هذا هو الجزء المراد توضيحه هو الجزء الملون باللون الاحمر اريد شرحه بالعربي مع التوضيح لاني لم افهمه بتاتا
Problem Description (2)
The Reservations are either OK Reservations or . For an OK Reservation, the reservation Date and whether the ticket is bought or not should be stored. For a waiting reservation, its order in the waiting list must be stored.
Task C
1. Write the OK Reservation class which is a derived class from Reservation. It should contain two attributes: reservation date and ticket bought, which is a Boolean, initially set to false. Don't forget the make the Reservation class an abstract class.
2. Write the Waiting Reservation class which is a derived class from Reservation. It should contain a single attribute: turn in list which specifies the order of the waiting reservations (i.e. is it the first reservation on the waiting list? The second? The third?... etc). It should also contain a method that moves reservation forward in list, which is used to move the waiting reservation higher in the waiting list, provided of course that it is not the first reservation
الله يجزاكم الفردوس الاعلى وييسر امركم وامري :wub:
