Computer Science, asked by Rishabhjain5772, 5 months ago

What are constructor in oop?

Answers

Answered by yabhay2233
0

Answer:

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.

Explanation:

give me thank

Similar questions