Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.8K
1 Posted Topic
Re: Virtual functions work like this: You declare a function virtual in the base class. eg (Shape.h) class Shape { virtual void draw(); }; Then, you define that function in the derived class: (Square.h) class Square : public Shape { void draw(); } (Square.cpp) void Square::draw() { //draw a square - … |
The End.