Introduction
A constructor helps create an object with initial values automatically when you make it. It saves time and keeps your code neat.
When you want to set up an object with starting details right away.
When you want to make sure every object has certain information from the start.
When you want to avoid writing extra code to set values after creating an object.
When you want to keep your code organized and easy to read.