How do you make a parameter optional in a constructor?

keyword is used in the argument to make it optional for the constructor . All the optional arguments of a constructor should be placed after all the mandatory arguments only in a constructor.

Sizin İçin Seçtik  Are constructors optional?

Leave a Reply

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

How do you make a parameter optional in a constructor?

keyword is used in the argument to make it optional for the constructor . All the optional arguments of a constructor should be placed after all the mandatory arguments only in a constructor.

Sizin İçin Seçtik  What parameters are optional?

Leave a Reply

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