Parameterized Constructor – A constructor is called Parameterized Constructor when it accepts a specific number of parameters . To initialize data members of a class with distinct values. In the above example, we are passing a string and an integer to the object.3 gün önce