>> Computer Engineering
A Color class has three public, integer-returning accessor methods: getRed, getGreen, and getBlue, and three protected, void-returning mutator methods: setRed, setGreen, setBlue, each of which accepts the integer parameter and allocates it to the corresponding color component.
The class, AlphaChannelColor-- a subclass of Color-has an integer instance variable, alpha, containing the alpha channel value, representing the degree of transparency of the color. AlphaChannelColor also has the method named dissolve (void-returning, and no parameters), which causes the color to fade a bit. It does this by incrementing (by 1) all the three color elements (utilizing the above accessor and mutator methods) as well as alpha component value. Write down the dissolve method.