class MyClass { private double imaginary; } class MySubClass extends MyClass{ MySubClass(double r, double i) { //real = r; // Error! } }