This is an excellent way of demonstrating the virtual keyword. Too many books and KZbin videos talk about it as an attribute of the language. By synthesizing the actions of the compiler in understandable code, you totally demystify the subject. Well done, you!
@Cognitive-Programmer6 жыл бұрын
Thanks for your comment
@dipakray97746 жыл бұрын
This was finest explanation with practical example on virtual keyword, I ever came across. Thanks a lot for educating..!!
@Cognitive-Programmer6 жыл бұрын
Thanks for your comment.. Great to know that you liked it
@nk3616 жыл бұрын
Another great video, I knew knew one bit about what virtual was actually doing, I'm going to watch many more of your videos now
@Cognitive-Programmer6 жыл бұрын
Thanks for your comment.
@abhishektwr165 жыл бұрын
This is awesome.Thanks for your contribution
@Cognitive-Programmer5 жыл бұрын
Thanks for your comment
@CodePlanStudio6 жыл бұрын
Great video! Good job keep it up. This was very clear explanation of the virtual keyword. Thanks !
@Cognitive-Programmer6 жыл бұрын
Thanks for your comment
@finddhananjay4u6 жыл бұрын
Great Videos thanks for sharing
@Cognitive-Programmer6 жыл бұрын
Thanks for your kind words Dhananjay
@ritizsingh90506 жыл бұрын
You nicely explained the concept behind the virtual. Could you please tell, how to bind function with different signature with vTable function pointer fn?
@Cognitive-Programmer6 жыл бұрын
Hello Thanks for your comment. You just need to add a new fnptr in struct vTable which matches the signature. Hope it clarifies Thanks
@bhavithc76244 жыл бұрын
Awesome explanation
@Cognitive-Programmer4 жыл бұрын
Thanks for your comment 🙏🙏
@shashanktiwari38926 жыл бұрын
"please create video on "bind" as well. Explain us "Dynamic Programming" as well.
@Cognitive-Programmer6 жыл бұрын
Thanks for your comments and input towards topics. Expect it soon
@181Ravikiran5 жыл бұрын
How does this work for Pure virtual function ?
@Cognitive-Programmer5 жыл бұрын
Nothing changes with pure virtual.. The compiler prevents instantiaon of the class
@181Ravikiran5 жыл бұрын
@@Cognitive-Programmer Like for me to override derived fn, the Base has to be virtual right , without that How to do it like?
@Cognitive-Programmer5 жыл бұрын
Yes the base function has to be declared virtual for a derived class function to be virtual