Wednesday, 11 September 2013

should i call the super() implicitly or explicitly?

should i call the super() implicitly or explicitly?

I learnt that when constructing an object, the super() will be called, no
matter whether you write it in the constructor or not. But I noticed that
in some codes, the super() method is called explictly. Here is my
question: Should I call the super() method implicitly or explicitly in a
constructor? What's the difference?

No comments:

Post a Comment