Post Entries
Calling All Constructors
Mar 30, 2005I wanted to change some code I had written last week so that an ::google(“overloaded constructor”, “overloaded constructor”):: would call the default constructor. This is usefull when you have to perform an initialization to a class member no matter what constructor is called during the class' initialization. I faintly remembered Java’s Base and SuperBase(?) syntax and tried several combinations of this and base keywords. Nothing seemed to work… That’s when I came across this post which gave me the answer: