Interview Questions   Tutorials   Discussions   Programs   Videos   

C++ - Can we have a private virtual method ?




229
views
asked marvit August 19, 2014 08:34 AM  

Can we have a private virtual method ?


           

1 Answers



 
answered By bhjahnavi   0  
No, we cannot have a private virtual method because virtual methods are to be overridden in the inherited class but when you declare them as private then they can not be accessed in the derived class . 
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert