This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 求助C++高手一个土土的问题哪位高人请指点一下这个问题如何回答:
What default methods are declared implicitly by the C++ compiler for the class below:
class Empty
{
};
-f18(f18);
2005-6-2
{147}
(#2324988@0)
-
constrcutor destructor
-arfeifei(老顽童);
2005-6-2
(#2325071@0)
-
that depends how you use this class. ctor is created only when it's needed.
-interview(intervieweree);
2005-6-2
(#2325428@0)
-
copy constructor
-oasis(oasis);
2005-6-2
(#2325098@0)
-
4: default c-tor, copy c-tor, assignment operator, and d-tor. For a class encapsulating resources, the compiler-generated ones are not good enough thus must be defined in applications.
-benbenli(大岭);
2005-6-3
(#2327192@0)