yangchen60 0 Newbie Poster 17 Years Ago 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 c++ 0 0 Reply with Quote Share Recommended Answers Collapse Answers Answered by Salem 5,265 in a post from 17 Years Ago Any decent C++ book should explain inheritance to you. Jump to Post All 2 Replies Last Seen 35 Minutes Ago Salem 5,265 Posting Sage 17 Years Ago Any decent C++ book should explain inheritance to you. 0 0 Reply with Quote Share dubeyprateek 26 Junior Poster 17 Years Ago virtual void drive() = 0 is a "pure virtual function" you can search with this keywod here or here 0 0 Reply with Quote Share Share Facebook Twitter LinkedIn Reply to this topic Be a part of the DaniWeb community We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge. Sign Up — It's Free!
Last Seen 35 Minutes Ago Salem 5,265 Posting Sage 17 Years Ago Any decent C++ book should explain inheritance to you. 0 0 Reply with Quote Share
dubeyprateek 26 Junior Poster 17 Years Ago virtual void drive() = 0 is a "pure virtual function" you can search with this keywod here or here 0 0 Reply with Quote Share