C
CC Jia
Hi, guys, I'm a cpp newbie.
I have a question about class definition, here is:
class C{
public:
C test2(){std::cout<<"test2\n"; return *this;}
void print();
C testDefinition();
};
As i know, in class definition, it is incomplete, why can I make
return a object of this class?
I have a question about class definition, here is:
class C{
public:
C test2(){std::cout<<"test2\n"; return *this;}
void print();
C testDefinition();
};
As i know, in class definition, it is incomplete, why can I make
return a object of this class?