~/talk

Back to Basics: Object-Oriented Programming in C++

Talkat CppCon 2024 · on Friday, 2024-09-20· at 09:00· Cottonwood 8/9, 6700 North Gaylord Rockies Boulevard· [typescript]
slides:none on file

Shows concrete code and compiler-transformation evidence: uses C++ Insights demo to emit C translation, exposes vtable/vptr reveal and exactly how virtual calls get indexed. Verifies that default parameters are substituted at compile sites so a default-parameter pitfall with virtual functions produces surprising behavior. Demonstrates object slicing, when to make destructors virtual or protected, and claims that a virtual destructor disables move operations. Provides specific examples and slide-linked code (works as shown).

AI-written summary · about

  1. 0:00Welcome
  2. 3:54Classes and encapsulation
  3. 14:51Struct vs class
  4. 20:37Best practices for classes
  5. 24:33Value vs reference types
  6. 26:21Special member functions
  7. 32:21Polymorphism and virtual functions
  8. 40:14Default parameters pitfalls
  9. 45:21Destructors and polymorphic deletion
  10. 51:28Template method pattern
  11. 53:55Good class design and slicing
  12. 57:27OOP principles summary
  13. 59:33Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.