Java Coding

เสร็จสมบูรณ์ โพสต์แล้ว 6 ปีที่ผ่านมา ชำระเงินเมื่อจัดส่ง
เสร็จสมบูรณ์ ชำระเงินเมื่อจัดส่ง

Hi,

I'm having trouble writing appropriate code in BlueJ for the following task. Could someone please help me?

A class ChristmasGift contains two instance variables noOfgifts which is an integer and childName which is a String. Write code for a method equals which compares two ChristmasGift objects for equality.

Assume that you can directly access the variables using the dot notation. Hint: two objects are equal if each instance variable in one of the objects is equal to the corresponding instance variable in the other object.

II. A class TestInt has a static int variable countInt and an int instance variable inInt. The static variable keeps track of the number of TestInt objects that have been created. Write code for the single-int constructor for this class. One of the functions it carries out is to initialise the instance variable to the value given by its argument

III. A class Driver that has an instance variable laps of type integer. A class classDriver has an instance variable capacity of type integer, an instance variable myDriver of type class Driver, and instance variable raceArray that can hold 10 objects of type Driver. Write down the code for three methods in the class classDriver. The first is the constructor which allocates a capacity of 50. The second method addLap(Driver d) increases the number of laps completed by driver d. The third method removeDriver(Driver d) that finds driver d and removes it from the raceArray.

Java

หมายเลขโปรเจค: #14589322

เกี่ยวกับโปรเจกต์

8 ข้อเสนอ โปรเจกต์ระยะไกล ใช้งาน %project.latestActivity_relativeTime|แทนที่%

มอบให้กับ:

robinhood700011

A proposal has not yet been provided

$15 USD ใน 0 วัน
(20 รีวิว)
3.4

freelancer 8 คน กำลังเสนอราคาในงานนี้ โดยมีราคาเฉลี่ยอยู่ที่ $43

xeathprynx

Hello, i am expert in java/c/c++ and i can deliver any task in least time and least payments. Pm me for further details. Thank You! Stay tuned, I'm is still working on this proposal.

$25 USD ใน 1 วัน
(79 รีวิว)
5.2
akashbarik23

A proposal has not yet been provided

$25 USD ใน 1 วัน
(0 รีวิว)
0.0
raghavendren

Hi, I have good programming experience in java. i can develop any standalone application using java with swing gui and any rdbms. Thanks, Raghav. Relevant Skills and Experience Java Programming Stay tuned, I'm is st เพิ่มเติม

$20 USD ใน 1 วัน
(0 รีวิว)
0.0