Posts
 
Reputation
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
~409 People Reached
Favorite Forums
Favorite Tags
c++ x 2

1 Posted Topic

Member Avatar for Fasola

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 - …

Member Avatar for wilsonian
0
409

The End.