Question: - Write in Java with OOP concepts six classes, to read a number of the color in RGB style and convert it to grayscale, the

- Write in Java with OOP concepts six classes, to read a number of the color in RGB style and convert it to grayscale, the numbers that read are in decimal format. The five classes are: Main -- to define an object, read, run Color -- a superclass which controls all subclasses Red -- to save the color number and return its value when request. Green -- to save the color number and return its value when request.. Blue -- to save the color number and return its value when request. Gray -- it receives all RGB values and returns a grayscale value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
