[HD Pg 213, Sec. 8.5.3 - constructor-chaining]
Posted: Fri Jul 23, 2021 5:02 am
"It is in fact against the rules to try to invoke another constructor using the constructor name and it will result in a compilation error."
I think what is meant here is:
"It is in fact against the rules to try to invoke another constructor using the constructor name and parameters, as in with the same ammount of parameters as where the other constructor is being called from, and it will result in a compilation error."
Right?
I think what is meant here is:
"It is in fact against the rules to try to invoke another constructor using the constructor name and parameters, as in with the same ammount of parameters as where the other constructor is being called from, and it will result in a compilation error."
Right?