別のオブジェクトのコピーで初期化すると、クラスオブジェクトのコンストラクターが機能しないのはなぜですか?
class Human
{
int No;
public:
Human(int arg):No(arg)
{
cout<<"constructor Works"<<endl;
}
};
int main()
{
Human a{10}; // constructor Works for object a
Human b{a}; //why b object's constructor dont work?
}