how to acess superclass properties with the same name in c 2b 2b

Solutions on MaxInterview for how to acess superclass properties with the same name in c 2b 2b by the best coders in the world

showing results for - "how to acess superclass properties with the same name in c 2b 2b"
Shaun
16 Sep 2016
1class A
2{
3public:
4  int x;
5};
6
7
8class B : public A
9{
10public:
11  int x;
12  B() 
13  { 
14    x = 0;
15    A::x = 1;
16  }
17};
similar questions