A function is defined in a base class as virtual. Is it virtual in all of its direct or indirect derived class? Is the keyword virtual required while defining functions in direct/indirect derived class?

Yes. Even a destructor in derived class is virtual if base class' destructor is virtual.
No. The virtual keyword is not necessary at any derived classes.
0 Response on this
click to Post
Login to comment.
Why create separate log in id? Log in with your
log in with your google account to post comment
Leave your comment:
*
*
Post