subject

Acolor class has a method getcolorname that returns a string corresponding to the common name for the color, e. g., yellow, blue, white, etc. if there is no common name associated with the color, null is returned. 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. write the method getcolorname of alpha channel color, that overrides the method in the color class. alphachannelcolor's getcolorname should return the name of the color (obtained from the getcolorname method of color) prefixed with the word 'opaque' if the alpha value is less than 100, 'semi-transparent' if the alpha value is otherwise less than 200, and 'transparent' otherwise (separate the prefix from the color name by a blank). if the color has no name, the method should return "opaque color", "semi-transparent color", or "transparent color", according the the same alpha values as above. submit

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 20:00
What software programs are used to to create professional publication? a.) graphics programs b.) word processors c.) page layout programs d.) spreadsheet programs
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
1. which of these is not true about torsion bars? a. they can be used to adjust ride height b. they can be adjusted anytime since they don't affect alignment angles c. they attach between the frame and the lower control arm d. they twist to produce a spring effect
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
What are some examples of what can be changed through options available in the font dialog box? check all that apply. font family italicizing bolding pasting drop shadow cutting character spacing special symbols
Answers: 2
question
Computers and Technology, 24.06.2019 22:00
Difference between ancient and modern mode of information transmission
Answers: 1
You know the right answer?
Acolor class has a method getcolorname that returns a string corresponding to the common name for th...
Questions
question
English, 10.11.2020 21:00
question
Spanish, 10.11.2020 21:00
question
Mathematics, 10.11.2020 21:00
question
Mathematics, 10.11.2020 21:00
Questions on the website: 13722363