Answers for "how to acess superclass properties with the same name in c++"

C++
0

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;
  }
};
Posted by: Guest on May-15-2021

Code answers related to "how to acess superclass properties with the same name in c++"

Browse Popular Code Answers by Language