Subscribe For Free Updates!

We'll not spam mate! We promise.

Apr 14, 2013

How do I call a parent constructor?



How do I call a parent constructor?

struct A
{
A() { /* ... */ }
};
struct B
{
B(): A() { /* ... */ } // call to parent's constructor.
};

TechniqZone Socializer Widget
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment