The C++ Virtual Keyword: Nothing Dynamic or RunTime about it

  Рет қаралды 1,576

Cognitive Programmer

Cognitive Programmer

Күн бұрын

Пікірлер: 22
@willofirony
@willofirony 6 жыл бұрын
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-Programmer
@Cognitive-Programmer 6 жыл бұрын
Thanks for your comment
@dipakray9774
@dipakray9774 6 жыл бұрын
This was finest explanation with practical example on virtual keyword, I ever came across. Thanks a lot for educating..!!
@Cognitive-Programmer
@Cognitive-Programmer 6 жыл бұрын
Thanks for your comment.. Great to know that you liked it
@nk361
@nk361 6 жыл бұрын
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-Programmer
@Cognitive-Programmer 6 жыл бұрын
Thanks for your comment.
@abhishektwr16
@abhishektwr16 5 жыл бұрын
This is awesome.Thanks for your contribution
@Cognitive-Programmer
@Cognitive-Programmer 5 жыл бұрын
Thanks for your comment
@CodePlanStudio
@CodePlanStudio 6 жыл бұрын
Great video! Good job keep it up. This was very clear explanation of the virtual keyword. Thanks !
@Cognitive-Programmer
@Cognitive-Programmer 6 жыл бұрын
Thanks for your comment
@finddhananjay4u
@finddhananjay4u 6 жыл бұрын
Great Videos thanks for sharing
@Cognitive-Programmer
@Cognitive-Programmer 6 жыл бұрын
Thanks for your kind words Dhananjay
@ritizsingh9050
@ritizsingh9050 6 жыл бұрын
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-Programmer
@Cognitive-Programmer 6 жыл бұрын
Hello Thanks for your comment. You just need to add a new fnptr in struct vTable which matches the signature. Hope it clarifies Thanks
@bhavithc7624
@bhavithc7624 4 жыл бұрын
Awesome explanation
@Cognitive-Programmer
@Cognitive-Programmer 4 жыл бұрын
Thanks for your comment 🙏🙏
@shashanktiwari3892
@shashanktiwari3892 6 жыл бұрын
"please create video on "bind" as well. Explain us "Dynamic Programming" as well.
@Cognitive-Programmer
@Cognitive-Programmer 6 жыл бұрын
Thanks for your comments and input towards topics. Expect it soon
@181Ravikiran
@181Ravikiran 5 жыл бұрын
How does this work for Pure virtual function ?
@Cognitive-Programmer
@Cognitive-Programmer 5 жыл бұрын
Nothing changes with pure virtual.. The compiler prevents instantiaon of the class
@181Ravikiran
@181Ravikiran 5 жыл бұрын
@@Cognitive-Programmer Like for me to override derived fn, the Base has to be virtual right , without that How to do it like?
@Cognitive-Programmer
@Cognitive-Programmer 5 жыл бұрын
Yes the base function has to be declared virtual for a derived class function to be virtual
31 nooby C++ habits you need to ditch
16:18
mCoding
Рет қаралды 839 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Is Functional Programming DEAD Already?
21:07
Continuous Delivery
Рет қаралды 75 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 334 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 842 М.
STOP Using Classes In JavaScript | Prime Reacts
14:02
ThePrimeTime
Рет қаралды 254 М.
C++ Header Files
15:10
The Cherno
Рет қаралды 741 М.
Why I’m Switching To Go in 2024
8:10
Awesome
Рет қаралды 96 М.
Object-Oriented Programming is Embarrassing: 4 Short Examples
28:03
Brian Will
Рет қаралды 2,1 МЛН
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 605 М.