I got an error ambiguous access mg. but mg is only protected and inherited using public access. why is it so? throw some light please. Thanks for your time !
class A{    
    protected:    
        int mg; 
        static int ms; 
};    
class B : public A{    
    protected:    
        using A::ms;  
};    
class C : public A, public B{    
    public:    
        void fn(){  
            cout << mg; 
            cout << ms;
        }  
};  
int A::ms = 0;
int main(){    
    C c; 
    c .fn(); 
}  
 
     
     
     
    