12345678
Which of the following are prototypes for a default constructor? Bar(int a=0, int b=0); Bar(); Bar(const Bar& b); Bar() = 0;
12345678910
struct bar { explicit bar( int v ) : value(v) {} // this would be a default constructor // it can be invoked with no arguments (there is a default argument) bar( const bar& that = bar(0) ) : value(that.value) {} int value ; };