Promevo interview question

What is a constructor?

Interview Answer

Anonymous

2 Apr 2019

Answered that it is part of a class that builds that class' object typically in a form like: Box box = new Box(int height, int width) { this.height = height; this.width = width; }