What are the functions of a constructor ?
Answers
Answered by
3
Answer:
Constructor (object-oriented programming) In class-based object-oriented programming, a 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.
Answered by
1
Answer:
The main function of a constructor is to construct things with more eligible and best raw materials.
Similar questions
Science,
4 months ago
Math,
4 months ago
English,
4 months ago
Hindi,
9 months ago
Accountancy,
9 months ago
Physics,
1 year ago
World Languages,
1 year ago