Decoding the Virtual Functions of C++ Programming Language
Автор: The Theory Of Code
Загружено: 2024-10-22
Просмотров: 233
: : Probably the least understood and often misunderstood part of learning C++ programming the virtualization of a function in a C++ class. The mnajor reason behind the confusion of cplusplus or c++ virtual functions is that as part of implementing the virtual mechanism, the C++ compiler change the code written by the programmers and the programmers have no obvious mehcnism of visualizing the same.
This mechanism is sometimes also called as run time polymorphims or dynamic binding. So to properly understand this concept of C++ virtual functions or run time polymorphism or dynamic binding we can actually implement the mechanism on our own without using the C++ Compiler.
So in this video, I've talked about the theoritical concepts of virtual function and validated the same using the same for the implementation of my own virtual mechanism.
I do hoppe and believe that this video was helpful to all of you.. Thanks for watching
Timcodes
0:00 : Virtual Functions in C++ Programming
0:30 : What if we implement everything without compiler help
0:56 : Why we need Virtual functions
2:01 : Changes in inheritance using virtual keyword
2:50 : The theory of virtual functions
3:01 : The virtual Table of a class
3:33 : Change in function call by the compiler for virtual functions
4:31 : run time polymorphism and dynamic binding
5:09 : Implementing Virtual without Virtual Keyword
5:47 : Implementing Virtual table using C++ vector
8:22 : Changing Virtual Function calls to a C++ vector based call
9:38 : Simulated the virtual function behaviour in c++ class
10:28 : Should we use built in Virtual Function or create our own
#cplusplusprogramming #cplusplus #cpluspluslearning
#cognitiveprogrammer
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: