syntax for calling virtual functions outside of the class?
Posted
by sil3nt
on Stack Overflow
See other posts from Stack Overflow
or by sil3nt
Published on 2010-06-06T06:04:49Z
Indexed on
2010/06/06
6:12 UTC
Read the original article
Hit count: 388
Hi there, what is the syntax for defining virtual functions outside the class body?
class random{
public:
random(int i = 0);
virtual ~random(){};
virtual void print() const;
protected:
int id;
};
is it?
virutal void random::print() {
}
?
© Stack Overflow or respective owner