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

[مخالف][ تنبيه ] السلام عليكم ..لوسمحتو ساعدونس تعبت وانا احاول

مغلق
بدأه Eng.roro في 14 أكتوبر 2010 · 4 رد · 397 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

Create a class called Vehicle that has the mnaufacturer’s name (type String),

number of cylinders in the engine (type int),and owner (type Person given below).

Then’create a class Truck that is deriver from Vehicle and has the

following additional properties: the load capacity in tons(type double since it may conntain

a fractional part) and towing capacity in pounds(type int).

Be sure your class has a reasonable complement of constructors, accessor and muta-tor

methods, and suitably defined equals and toString methood.

Write a pro-gram to test all your methood.

The definition of the class Person us below.Completing the definitions of the methood is part

of this programming project.

public class Person

{private String name;}

public person()

{....}

public person (String theName)

{....}

public Person(Person theObject)

{....}

public String getName()

{.....}

public void setName(String theName)

{.....}

public String toString()

{.....}

public boolean equals(Object other)

{.....}

#2

من الممكن ان تعرض محاولتك اولا...... :)

00020309t.gif

1958_1963.gif
#3

حاول تعمل الـ classes زى الـ Person Class هتلاقى فيه شبه كبير بينهم

واعرض علينا محاولاتك كي تتعلم اكثر

من السهل علينا اعطائك الحل

لكن لكى تتعلم وتحاول بنفسك

منتظرين محاولاتك

:)

Software Developer
Mahmoudkelany.com


 

#4

*- يحظر استخدام اللهجة العامية

*- أو كتابة الأسئلة باللغة الإنجليزية

*- أو كتابة الكلمات الإنجليزية بالعربية

====

#5

الأخ الكريم/الأخت الكريمة

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

مرحباً بكم في منتدى الفريق العربي للبرمجة

تأسف إدارة المنتدى لغلق الموضوع وذلك لمخالفته قوانين المشاركات .

قواعد طرح المشاركات

/index.php?showtopic=29343

شاكرين لكم حُسن تعاونكم

هذا الموضوع مغلق.

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

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…