How are this () and super () used with constructors?

How are this() and super() used with constructors? Constructors use this to refer to another constructor in the same class with a different parameter list . Constructors use super to invoke the superclass’s constructor. If a constructor uses super, it must use it in the first line; otherwise, the compiler will complain.

Sizin İçin Seçtik  Binance TC kimlik zorunlu mu?

Leave a Reply

Your email address will not be published. Required fields are marked *