I'm trying to get a clear understanding of constructors before I start my next exercise. Please tell me if I have a inkling of what I'm talking about. Also could someone "dumb down" constructors even more for me?
My understanding is that a constructor is used only when you create a new object (instantiate an object). For instance: Species dog=new Species(husky,black,10)
A constructor is just a "set method" but the constructor invokes the "set" method at the time the object is created - correct?
The difference is instead of "name of object.set(string,string,int)" it should be "name of class(string,string,int)". For instance:
Species dog=new Species(husky,black,10)
Thanks for your guidance.