Interface (.hpp) versus implementation (.cpp) files (and why they exist) | Modern Cpp Series Ep. 36

Published: 07 March 2022
on channel: Mike Shah
13,765
467

►Full C++ Series Playlist:    • The C++ Programming Language  
►Find full courses on: https://courses.mshah.io/
►Join as Member to Support the channel:    / @mikeshah  

►Lesson Description: In this lesson I discuss the difference between an interface (.h, .hxx, or .hpp) file in c++ versus an implementation file (.cpp or .cxx). Header files (.hpp) give you a high level overview of the programming interface you have in the library. The implementation file (.cpp) however, provides the implementation (i.e. the actual details and algorithms to get work done).

In this lesson, we also discuss header guards (So you can include files safely), what happens when you include a file too many times (multiple definition error), and the purpose of why we separate our code (make project more easy to manage, and to speed up compilation).

►YouTube Channel:    / mikeshah  
►Please like and subscribe to help the channel!


On this page of the site you can watch the video online Interface (.hpp) versus implementation (.cpp) files (and why they exist) | Modern Cpp Series Ep. 36 with a duration of hours minute second in good quality, which was uploaded by the user Mike Shah 07 March 2022, share the link with friends and acquaintances, this video has already been watched 13,765 times on youtube and it was liked by 467 viewers. Enjoy your viewing!