Is Constructor Overriding Possible?

后端 未结 14 1957
时光说笑
时光说笑 2020-12-08 00:31

What i know is, the compiler writes a default no argument constructor in the byte code. But if we write it ourselves, that constructor is called automatically. Is this pheno

14条回答
  •  情话喂你
    2020-12-08 01:25

    You can have many constructors as long as they take in different parameters. But the compiler putting a default constructor in is not called "constructor overriding".

提交回复
热议问题