For one of my assignments, I got to make my own class that extends the java.awt.Color class and adds some extra things. My program was compiling find but not it's saying it can't find the constructor Color().
class MyColor extends java.awt.Color{
MyColor( Color o) {
super(o);
}
}
What am I doing wrong, it was working fine. (This isn't my complete code).
class MyColor extends java.awt.Color{
MyColor( Color o) {
super(o);
}
}
What am I doing wrong, it was working fine. (This isn't my complete code).