Constructor and Description |
---|
B(double x,
double y)
Initializes a newly created B object.
|
Modifier and Type | Method and Description |
---|---|
double |
power() |
public B(double x, double y)
At the top of the constructor before the super call, print: "Constructor: B"
Note the error. Move the call to super to the start of the method. Now it should compile.
x
- value for the field xy
- value for the field y