Suppose that we have a class a
:
class A {
A._();
}
Its default constructor is private: A._()
.
Is there any way to extends
that class?
Problem
class B extends A {
}
This results in a compiler error:
The superclass 'A' doesn't have a zero argument constructor.
Trying to compose any constructor for B
myself (B()
) results in another error:
The superclass 'A' doesn't have an unnamed constructor.