954,483 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

virtual void drive() = 0 What this means?

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

yangchen60
Newbie Poster
4 posts since Dec 2007
Reputation Points: 10
Solved Threads: 0
 

Any decent C++ book should explain inheritance to you.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

virtual void drive() = 0 is a "pure virtual function" you can search with this keywod here or here

dubeyprateek
Junior Poster
176 posts since Mar 2006
Reputation Points: 39
Solved Threads: 24
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You