C++ Virtual Functions and VTables
Learn how C++ virtual dispatch works under the hood: vtables, vptrs, override, final, and the cost of polymorphism.
·3 min read · #cpp#virtual#vtable
3 posts · page 1 of 1
Learn how C++ virtual dispatch works under the hood: vtables, vptrs, override, final, and the cost of polymorphism.
How Go interfaces work in practice: implicit satisfaction, small interfaces, the empty interface, type assertions, and idiomatic interface design patterns.
Rust traits look like interfaces from other languages, but the differences matter: associated types, blanket impls, coherence, and dynamic dispatch all behave their own way.