U E D R , A S I H C RSS

Hardcore Cpp Study/두번째숙제/Constructor And Destructor/변준원

~cpp 


class Test{
public:
Test();
~Test()



1.
, .
Test(); Test obj1;
. , default
.

2.
~Test(); , ,
.
,
.

3.
, .
, new .








3 ......

IntArray (int sz = defSize)
{
size = sz;
ia = new intsz;
}

,
~IntArray()
{
delete [] ia;
}





(;;)
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:21
Processing time 0.0095 sec