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
~465 People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for yangchen60
Member Avatar for yangchen60

virtual void drive() = 0 What this means? void means no return value. drive() is a function but what virtual means? and why it asigns a value of 0 to a function?How can a function have value of 0 ? Thank you

Member Avatar for dubeyprateek
0
72
Member Avatar for yangchen60

Hey guys ----------------- Truck t; Car c; Vehicle *broom = &c; broom->drive(); broom = &t; broom->drive(); ----------------- by saying Vehicle *broom = &c; what do you actually do ? what it means? *broom is a pointer located on c's adress in memory ? Is that right? thanks

Member Avatar for dubeyprateek
0
62