Click here to Skip to main content
15,906,106 members

Comments by krish0969 (Top 17 by date)

krish0969 30-Dec-15 23:07pm View    
Thanks Daniel :)
krish0969 24-Sep-15 10:55am View    
In the answer you mentioned "In the case of a pure-virtual function, the entry in the vtable usually contains a pointer to a generic function that complains and aborts the program with some sensible message (pure virtual function called within this context or similar error message)"

Can you explain at what situation will get this error in programtically
krish0969 24-Sep-15 10:27am View    
For the second answer it will call the derived class function.I am trying to understand how we can call the base class function without a static call(calling from derived class function using scope resolution operator) so that it will give runtime error
krish0969 24-Sep-15 10:05am View    
Hi Pallini,

Thanks for the response .I have gone through the link provided .If possible can you please also answer the questions which I asked in comments
krish0969 24-Sep-15 10:02am View    
Thanks for the explanation .I still have some doubts in mind

1) How does the compiler knows whether vtable has the pure virtual function entry or virtual function .

2) How we can make the call to base class pure virtual function. I tried to make a static call from derived class i got a linker error? .If possible can you please provide sample code