Constructors Demystified
What is a Constructor?
A constructor is basically a function that initializes an object at the time of its creation. It looks similar to a method and is named the same as a class.
// syntax of a constructor
public className() {
}
Now, what do I mea...
codexposed.hashnode.dev8 min read
Maxi Contieri
Software Engineer
Awesome article
No-Parameterized constructors are a code smell of an object that will dangerously mutate.