C++ Invoking Base Class Functions Using the Scope Resolution Operator

preview_player
Показать описание
Jamie King from Neumont University showing how to call a base class function from a derived in C++ type using the scope resolution operator.
Рекомендации по теме
Комментарии
Автор

cant believe this video is almost 4 yrs old and it only has ten likes. People just dislike C++ because its more complicated, so they probably got angry and left without liking the video :)

ChristopherJones
Автор

0:26 you did Base base at first, but then then changed the base object into a pointer. I'm trying to teach myself when to know to use pointers and when not to.. so why did you change it into a pointer? couldn't we just used to regular object ? or does it have to be a pointer when dealing with inheritance and virtual functions?

ChristopherJones