Interviews7 answers
Can I make a pure virtual function static?
7 Answers
No ! since static method is not instance method or it will never call by instance by object. Hence you cant make pure virtual function as static
Pramod LawatePosted Aug 26, 2016, 5:36 AM EDT
1:because static method can't be inherit.
2:we make pure virtual function to achive late binding and late binding is not possible without pure virtual function
2:we make pure virtual function to achive late binding and late binding is not possible without pure virtual function
sujeet singhPosted Oct 3, 2009, 6:49 AM EDT
sujeet singhPosted Oct 3, 2009, 6:44 AM EDT
No . u can't.
anant patilPosted Sep 26, 2009, 3:09 AM EDT
A static member cannot be marked as override, virtual, or abstract
Rekha SinghPosted Jul 30, 2009, 6:34 AM EDT
No, you cann't make virtual function as static
Malaikani RajamaniPosted Jan 20, 2009, 11:22 PM EST
I have no idea.
nilesh katkarPosted Oct 15, 2007, 10:33 PM EDT

