У нас вы можете посмотреть бесплатно Part 65 Taming Dragons with Stroustrup’s Blade - Static vs Dynamic Binding in C++ | vtable Explained или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this episode of “Taming Dragons with Stroustrup’s Blade”, we explore one of the most fundamental aspects of object-oriented programming in C++ — the binding mechanism. You’ll learn how C++ determines which function to call at compile-time (static binding) or at runtime (dynamic binding). We’ll also analyze how the compiler implements dynamic dispatch internally using vptr and vtable, and how keywords like virtual and override change the function resolution process. ⏰ Timestamps: 00:00 ▶️ What is the Binding Mechanism in C++ — Understanding how the compiler decides which function to invoke when a method call is made. 02:10 ▶️ Inspecting Binding Mechanism in Practice — Demonstrating examples of binding behavior with regular and polymorphic function calls. 06:00 ▶️ Overview of Static Binding (Compile-Time Resolution) — Explaining how the compiler resolves functions during compilation and optimizes direct calls. 11:40 ▶️ Static Binding in Disassembly Analysis — Diving into compiler-generated assembly to see direct function calls and inlined operations. 16:50 ▶️ Overview of Dynamic Binding (Runtime Resolution) — Exploring how C++ enables polymorphism by deferring function resolution to runtime using virtual functions. 18:48 ▶️ Inspecting vptr and vtable in Class Implementations — Understanding how vtables (virtual tables) and vptrs (virtual pointers) are generated and used for dynamic dispatch. 20:30 ▶️ Using virtual and override Keywords for Dynamic Binding — Implementing runtime polymorphism correctly with virtual, override, and understanding their effect on class hierarchies. 📌 What You'll Learn: • The difference between static and dynamic binding in C++ • How compilers resolve function calls at compile-time and runtime • How virtual tables (vtable) and virtual pointers (vptr) implement runtime polymorphism • The internal structure and mechanics behind virtual and override • Disassembly insights into how C++ executes virtual calls 🛠 Concepts Covered: • Compile-time vs runtime function resolution • Function inlining and static dispatch mechanisms • Virtual table (vtable) and virtual pointer (vptr) internals • Object layout and dynamic dispatch implementation • virtual, override, and final in modern C++ design 📢 Community & Resources: 🌐 Website: https://acql.ir 📸 Instagram: @aiooo_cql 📢 Telegram: @aioooir 🐦 Twitter: @aioooir 💻 GitHub: https://github.com/aiooord 🧪 Challenge for Viewers: Write a C++ program that: • Defines a base class and two derived classes, each overriding a virtual method. • Calls the overridden methods through base class pointers and references. • Compiles with optimization flags and inspects the disassembly to identify static vs dynamic dispatch. • Uses the override keyword to enforce correct overriding and analyze vtable structure differences.