"Constructor notation is preferred when you need to set initial properties and methods on an object or you plan on creating multiple instances of an object where the properties and methods of each instance need to be unique."
Love it when they don't just tell you how to do something. Would like to see more people write on when you should use something.
Love it when they don't just tell you how to do something. Would like to see more people write on when you should use something.