/* Define a class "Line", with the data attributes "length" and "color". Write accessor and mutator methods for the 2 attributes. Write a consturctor that initializes the attributes to 10.5 and Red respectively. In the main() method, instantiate the class. */ class Line { // declare the attributes. Decide on the best data types. double length; String color; // constructor. Needs to be public public Line() { length = 10.5; color = "Red"; } // accessor methods. Always public. Return type matches the data type. No parameters. public double getLength() { return length; } public String getColor() { return color; } //mutator methods. Always public. Return type is void. One parameter that matches the atrtibute's type. public void setLength( double l) { length = l; } public void setColor ( String c) { color = c; } // main method public static void main (String [] args) { Line myLine = new Line(); } }