L
LEF
Hello All,
My apologies if this question is in the FAQ, however, I looked for the FAQ
but couldn't find it. Direction to it would be appreciated. My question is
very simple, can a class have as a return type for one it's methods the type
the class defines? Probably not clear, an example:
class example {
public:
example testfn();
};
example example::testfn() {
}
Is that valid?
Thanks.
My apologies if this question is in the FAQ, however, I looked for the FAQ
but couldn't find it. Direction to it would be appreciated. My question is
very simple, can a class have as a return type for one it's methods the type
the class defines? Probably not clear, an example:
class example {
public:
example testfn();
};
example example::testfn() {
}
Is that valid?
Thanks.