Computer Science, asked by humblestudent, 1 year ago

what is a parametrized constructer?

Answers

Answered by ROSANNAKARYA03
1
Heya friend howz uh ?
Myself Karya Khurrana (ROSANNAKARYA03_Expert)

 It may be necessary to initialise the various data elements of different objects with different values when they are created.

This is achieved by passing arguments to the constructor function when the objects are created. 

The constructors that can take arguments are called parameterized constructors.

hope this helps! :D

humblestudent: thank you so much
Answered by oswin
2
A Paramterized constructor is a member function with same name as the class name which is used to intialize the object variables by passing parametric values at the same time of its creation.

humblestudent: thank you so much!
oswin: ur wlcm
oswin: r u in class 10
humblestudent: yea
oswin: icse
Similar questions