KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want a pure virtual parent class to call a child implementation of a function like so: class parent { public: void Read() { //read stuff } virtual void Process() = 0; parent() { Read(); Process(); } } class child : public parent { public: virtual void Process() { //process stuff } child() : parent() { } } int main() { child c; } This should work, but I get an unlinked error :/ This is using VC++ 2k3 Or shouldn't it work, am I wrong?
Tags (comma-separated)
Save Edits
Cancel