class test {
int a;
public:
test(int i) : a(i) {};
};
上のようなコンストラクタを見たのですが、これは
test(int i) { a = i; }
と同じ意味ですか?
同じだとしたらどちらが一般的な書き方なのでしょうか。