Beyond Knowing
Ed Tools
Play Quiz
Sign in
Join Sookshmas
Beyond Knowing
Jobs
Ed-Tools
Play Quiz
Sooraj bk
Wall
Questions
e-Notes
Calculations
MCQs
News/Article
Rules of Virtual Function in C++
Virtual functions must be members of some class.
Virtual functions cannot be static members.
They are accessed through object pointers.
They can be a friend of another class.
A virtual function must be defined in the base class, even though it is not used.
The prototypes of a virtual function of the base class and all the derived classes must be identical. If the two functions with the same name but different prototypes, C++ will consider them as the overloaded functions.
We cannot have a virtual constructor, but we can have a virtual destructor
Engineering-CS
Engineering-IS
mca
GMIT Mandya
SEM-IV
c++
Posted on
by
Score
Share
Views
Comment(s)
Please
Login
to post your answer or reply to answer
Recent e-Note Comments
Recent e-Notes
Top Scored e-Notes
Scroll
×
Login to India's fastest growing social media for Self-Learners!
Sign in with Google
OR
Not registered?
Create an account
Forgot Password?
×
Join India's fastest growing social media network for learning and education!
Sign in with Google
OR
Already a registered user?
Login