中国开发网: 论坛: 程序员情感CBD: 贴子 386020
空山新雨
...........................
When the constructor of a class is called, if you didn't make explicit call to the constructor(s) of its super class, the default constructor of its super class will automatically be called before any statment in this class is executed.

If the super class doesn't have a default constructor, you will get a compile error of "constructor of super class must be called as the first statement of constructor of this class"

Understand?

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录