الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

سؤال يتعلق بسؤال في مشروعي لم افهمه

بدأه مريتعي في 1 مايو 2009 · 2 رد · 932 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

وعليكــم السـلام ورحمة الله وبركاتـه..

اخواني انا بادي بمشروع من فتره لكن المشكله وصلت لنقطه انا اصلا مافهمت السؤال فيها واتمنى منكم الله يجزيكم الف خير المساعده

هذا هو الجزء المراد توضيحه هو الجزء الملون باللون الاحمر اريد شرحه بالعربي مع التوضيح لاني لم افهمه بتاتا

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:

#2
مريتعي كتب:
وعليكــم السـلام ورحمة الله وبركاتـه..

هذا هو الجزء المراد توضيحه هو الجزء الملون باللون الاحمر اريد شرحه بالعربي مع التوضيح لاني لم افهمه بتاتا

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:

آمين يا رب

السلام عليكم...

ببساطة هيك:

مطلوب كتابة صنف مخصص لحجوزات الإنتظار Waiting Reservation

هذا الصنف يكون وارثاً من الحجوزات Reservation

يحتوي هذا الصنف (حجوزات الإنتظار) على خاصية مسؤولة عن تعيين الترتيب لهذه الحجوزات.

مسلاً:

هل هذا الحجز الأول بقائمة الإنتظار, أم التاني؟ أم التالت؟ و هكذا...

,.,.,.,.,.

و يحتوي أيضاً على إجراء برمجي Method. يعمل على تحريك العنصر الموجود بقائمة الحجوزات إلى أعلى و يدعم معلوماتياً بأن هذا ليس هو الحجز الأول.

بس هيك و الله أعلم

Bye

[وسط]

♥ Countess ♥

57899411.gif

♥

[/وسط]

#3

الف شكر الك اختي

بس وضحي لي اكثر مافهمت

مواضيع مشابهة