So I can make a getter and setter function to get and set values, the constructor will set values when called, so the constructor just initializes variables and the setter function allows me to change it whenever I want right? so I really dont understand the point of making the constructor because I can just initialize my variables with the setter functions so idk i guess i just dont get the point.
Initializing an object's members outside the constructor may be, in certain circumstances, one or more of the following:
* Impossible. E.g. if the class contains member references, or if some of the members can be initialized only once and can never be modified after construction (such objects do exist).
* Undesirable. E.g. if the object is supposed to maintain certain conditions throughout its lifetime. A constructor gives you the certainty that you won't accidentally initialize the object into an inconsistent state.
* Inefficient.
ah I see, that makes perfect sense. so in this situation im thinking i really dont need a constructor but then again its always wise to initialize variables at startup so what should i do? Also when initializing do I do this: