hi I'm new to c++ .
can anybody explain me the following code line
code:
class xx2: public xx {
public:
x* create x(x& con) const {
return new x(con);
}
my question are following :
what is the const keyword doing here ?
what is the meaning of const (constant here)?
In return statement what is new doing ?
can we return new in a function ?
Is it a example of dynamic constructor