Author | Message |
---|---|
busynerd
Posts: 5
|
Posted 20:02 Feb 04, 2014 |
Is it possible to call a class member method in its own constructor? I tried but it seems to want me to make an object in order to access class member methods, but then it gets messy. I'm making all the methods member methods, I have easy access to the class's assets such as a vector. I would like to call some methods like checkRange(), or eraseDupes() in the constructor? My only alternative that I can think of so far is to code the functions into the constructor -- which isn't clean, and not reusable, but that' what I did for now to make this work... Thanks in advance!
Last edited by busynerd at
20:04 Feb 04, 2014.
|