Computer Science, asked by RitePatil1082, 1 year ago

The Use of a Constructor in Computer Programming

Answers

Answered by tanu5289
0
In class-based object-orientedprogramming, 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 theconstructor uses to set required member variables. ... Immutable objects must be initialized in aconstructor.
Similar questions