Computer Science, asked by pragyakriti2, 7 months ago

What are the functions of a constructor ?​

Answers

Answered by AlaxNeon
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 yashraj231200
1

Answer:

The main function of a constructor is to construct things with more eligible and best raw materials.

Similar questions