You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new Test();
class Test extends Polygon {
public Test(){
// this works:
// super(true, new double[]{ 10, 10, 300, 10, 150, 200 });
// this results in error:
super(true, 10, 10, 300, 10, 150, 200);
}
}
The text was updated successfully, but these errors were encountered:
Calling the constructor
public Polygon(boolean closeAndFill, double... points)
in a sub class using super results in the following error:Test example:
The text was updated successfully, but these errors were encountered: