cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
virtual function
virtual function
May 17, 2010 at 3:02pm UTC
angelo123
(1)
Hi All,
I am new to C++, so my question might be very basic.
Assuming I have a function which is declared as virtual in one of the class hierarchy, does it mean the function is virtual in all the derived classes even though virtual qualifier is not used?
Thank you ...
May 17, 2010 at 3:06pm UTC
moorecm
(1932)
Yes. The additional virtual keywords are not required but it might be a good idea to leave them there as a little reminder.
Topic archived. No new replies allowed.