Question: In Java, please show the test code and the correct output. (1) The CellPhone class Assume that a cell phone retailer wanted you to write
(1) The CellPhone class Assume that a cell phone retailer wanted you to write a program to keep track of its inventory. Define an object called CellPhone which maintains state representing a cell phone's model (a string), manufacturer (a string), monthsWarranty (an integer) and price (a float) All instance variables (i.e. attributes) should be made private. Create a zero-parameter constructor as well as one that takes all 4 parameters (in the order listed above). Also create get and set methods for each attribute. Save and compile the file. The program below is called CellPhoneTestProgram and it should test your CellPhone methods. However, the testing code is incomplete (see highlighted areas). Please complete the testing code according to the directions given, then test out the code to make sure that it works: tesling code according to the direcions gven, hen test out the cde to ake sure thatit works
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
