SUPER problem in subclass construction functions

xiaoxiao2021-03-06  49

When subcatencing SUPER () or does not address, and the parent class has no explicit constructor: compile

And the parent class only does not have a functional function: compile

And the parent class only has a visual constructor: compilation error

When the parent class has both a paragraph-free constructor, there is also a visual features, and subclasses can be flexible with super () or super (parameters).

转载请注明原文地址:https://www.9cbs.com/read-80813.html

New Post(0)