Question: In Java . Important : Please note that the class name must be Watch and your code will be examined by our predefined main function.
In Java.

Important: Please note that the class name must be Watch and your code will be examined by our predefined main function. Also it is strongly recommended to test your class with your own main function before submitting. Do not make any changes to the class, attributes or function names. Please make sure that your code works with the following main function.

Lab Question Maria recently started a watch retail store. She works with variety of watch brands. She needs a program which helps her in storing information of her watch inventory. Please help her in defining a class called Watch shown below public class Watch private String brand; private String color; private int year; private boolean isDigital; public String getBrand) public void setBrand (String brand) public String getColor) public void setColor (String color) public int getYear public void setYear (int year) f public boolean isDigital public void setDigital (boolean isDigital) public String tostring) i Please use the above provided class and add necessary functions and attributes. The class (shown above) must have the followings A default constructor which sets all of the attributes to 0 or null. A constructor which sets all of the attributes to the constructor function input argument. Getters and setters must be provided for each of the attributes. A toString function must also be provided to return the watch information in the following format: My Watch:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
