عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 21-03-2011, 05:26 PM
الصورة الرمزية moon999

moon999 moon999 غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Oct 2009
التخصص: IS
نوع الدراسة: إنتظام
المستوى: الرابع
الجنس: أنثى
المشاركات: 53
افتراضي واجب الجافا cpcs 203


لو سمحتوا يا بنات
الي فاهمة فكرة البرنامج المطلوبة تشرح لي هنا
مو شرط كود بس ع الأقل اش المطلوب وكيف ممكن مفاتيح الحل ^^"

الي مو عندها السؤال هذا هو
Create a class called Employee that includes three instance variables
First name, type string
Last name, type string
Monthly salary, type double

Provide a constructor that initializes the three instance variables.
Provide a set and get method for each instance variable. If the monthly salary is not positive, do not set its value.
Write a test application named EmployeeTest that demonstrates class Employee’s capabilities. Create two Employee objects each Employee’s yearly salary. Then give each Employee a 10% raise and display each Employee’s yearly salary again.

 


توقيع moon999  

واعبد ربك حتى يأتيك اليقين

 

رد مع اقتباس