标签: c++
是否可以像下面的代码那样编写副本构造函数? (在init行中使用其他构造函数)
Fish::Fish( int fin, int gills) { m_finCount = fin; m_gillsCount = gills; } Fish::Fish(const Fish & other):Fish(other.m_finCount,other.m_gillsCount) { // all in init line }