+ 1

What is the use of virtual function in c++?

Suggest me how it works as a function?

31st Aug 2019, 7:42 AM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
15 Answers
+ 2
Can we make it as constant
31st Aug 2019, 10:48 AM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
+ 2
Thanks I got some ideas about that
31st Aug 2019, 6:14 PM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
+ 2
yup, I meant that. In case of if derived class doesn't override
1st Sep 2019, 5:01 AM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
+ 2
Thank~
1st Sep 2019, 5:01 AM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
+ 1
One more., virtual method can call non-virtual method?
31st Aug 2019, 10:56 AM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
+ 1
Actually I want to know how function works as virtual. I tried to understand but it won't work with satisfaction
31st Aug 2019, 11:41 AM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
+ 1
So would u help me to understand the topic
31st Aug 2019, 11:41 AM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
+ 1
Okkkk thanks
31st Aug 2019, 12:47 PM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar
+ 1
One thing is there if we can't make them reference or pointer the object of derived class always calls the base class method I mean fun1()?
31st Aug 2019, 6:20 PM
A 🌟 P Rana 🔯
A 🌟 P Rana 🔯 - avatar