Explain blank class functions in C++
问题 class forums : public master{ public: forums() : next(0),prev(0) {} } Please Explain what exactly does the functions next(0) and prev(0) are meant? What does seperation of function with a comma (,) indicates? what's the effect of empty braces {}, next to these functions? I am a beginner in C++, and trying to figure out what does this means, or intended use for these way of writing function? like is it specially meant for overriding? 回答1: Short answer That is a constructor with an empty body,