Computer Science, asked by EllieBerryStudys, 4 months ago

I have a computer science question. What is a constructor?

Answers

Answered by mileycyrus41
1

Answer:

In class-based object-oriented programming, a constructor (abbreviation: ctor) is a special type of subroutine called to create an object. ... A properly written constructor leaves the resulting object in a valid state. Immutable objects must be initialized in a constructor.

Similar questions