Is it mandatory to call base class constructor in Java? In C++ it was optional, so I am asking this.
When I extend ArrayAdapter
, I get this error: "Implicit super constructor ArrayAdapter<String>() is undefined. Must explicitly invoke another constructor"
So, what is the purpose of calling base constructor? When I create object base class constructor will call & then it comes to derived right.
See Question&Answers more detail:os