C++ - what does the colon after a constructor mean?
- by waitinforatrain
I'd happily Google this but don't know what to call it to Google it.
I have a piece of code here:
class demo
{
private:
unsigned char len, *dat;
public:
demo(unsigned char le = 5, unsigned char default) : len(le)
{
dat = new char[len];
for (int i = 0; i <= le; i++) …