Can constructor pass parameters?

You can use any data type for a parameter of a method or a constructor. This includes primitive data types, such as doubles, floats, and integers, as you saw in the computePayment method, and reference data types, such as objects and arrays.

Sizin İçin Seçtik  Hangisi kültürel ihtiyaçlardan biridir?

Leave a Reply

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