End Google Ads 201810 - BS.net 01 -->
Hi, I'm trying to teach myself C++ and was playing with an example from a website. If I only inherit from Derived class, I could change the access level of Identity method from protected to public by declaring public Derived::Identity in class DerivedChild. However, if I have multiple inheritance, I'm not able to access that method. Could someone tell me what I did wrong?
Thanks,
Helen
#include #include <span class="code-keyword"string/span> class Base { protected: int m_nValue; public: Base(int nValue) : m_nValue(nValue){} void Identity() {std::cout
مواقع النشر (المفضلة)