0
HELP ME!!
in this code at line 2 showing base::t1 is in accessible??why?? https://code.sololearn.com/c8VBVB6g0kwP/?ref=app
6 Respuestas
0
Please help me😕
0
Base class b is inherited with protected inheritance so you cant access it outside of that class or without inheritance relation in main class
0
Jayakrishna🇮🇳 can't access ouside of which class??
0
You are using protected inheritance for base class so base class protected,public data are available as protected data by derived class object. so t1 becomes protected variable in derived class .
you cant use t1 outside of it and not accessible in main method. (Outside of class derived)
0
Thanx i understood😄
- 2
....