[C++筆記] 建構式(Constructor)、解構式(Destructor)、拷貝建構式(Copy Constructor)
Published in
1 min readOct 29, 2018
寫法
class Line
{
Line( int len ); // 建構式
Line( const Line &obj); // 拷貝建構式
~Line(); // 解構式
}
class Line
{
Line( int len ); // 建構式
Line( const Line &obj); // 拷貝建構式
~Line(); // 解構式
}