Lavi M.

asked • 09/13/20

Whats the answer for these Classes and Objects exercise?(Java)



Question 1: Create a class Circle with data types (radius, colors) and methods getRadius (0, getArea().


Question 2: Create a class Car with data types (plateNumber, xLocation, yLocation, speed) and methods

move (), park(), accelerate(). The datatypes xLocation, yLocation will be used for method park(), and

speed datatype will be used for accelerate().




1 Expert Answer

By:

Patrick B. answered • 09/13/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.