What do you mean by constructor
Answers
Answered by
0
Answer:
Good morning
Step-by-step explanation:
constructor (abbreviation: ctor) is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables. ... Immutable objects must be initialized in a constructor.
may it's helpful to you
Answered by
9
In class-based object oreinted programming,A constructor is a special type of subroutine called to create an object.It prepares a new object for use,often accepting arguments that the constructor used to set required member variables...Immutable object must be Initilized in a constructor.
Hope this helps you
Have a great day...
Similar questions