working on superclasss properties with same namein c++ code example
Example: how to acess superclass properties with the same name in c++
class A
{
public:
int x;
};
class B : public A
{
public:
int x;
B()
{
x = 0;
A::x = 1;
}
};