A few obvious ones that you usually care about are constructors, assignment operators, and destructors.
In all these cases, the new version related to the derived class is either provided by the user or synthesized by the compiler (although C ++ 11 also adds some features for things like simply deleting one of them, you want to have access).
I probably should add that βyou cannot inheritβ is not necessarily accurate. For example, inheriting constructors are added in C ++ 11 (but they were not in C ++ 98/03, which most courses still deal with). Even in C ++ 11, you do not inherit them by default.
source share