posted 16 years ago
Compilation fails cause Uber doesn't declare the no-arg constructor
Uber(){}.
A call to this() is a call to the no-arg constructor.
Remember the follwoing rules:
If you don't type a constructor into your class code, a default constructor will be automatically generated by the compiler(the no-arg constructor).
If you want a no-arg constructor and you've typed any other constructor into your class code, the compiler won't provide the no-arg constructor.