Answer:
The following are the code in the Java Programming Language.
//define a class and inherit the other class
public class AlphaChannelColor extends Color {
//define constructor and pass arguments
public AlphaChannelColor(int red, int green, int blue, int alpha) {
super(red, green, blue);
this.alpha = alpha;
}
//define function
public int getAlpha()
{
return alpha;
}
//declare a private type variable
private int alpha;
}
Explanation:
The following are description of the program.