my scenario is as follows::
class Parent
{
public:
int x;
}
class Child:public Parent
{
int x; // Same name as Parent's "x".
void Func()
{
this.x = Parent::x; // HOW should I access Parents "x".
}
}
Here how to access Parent's "X" from a member function of Child.
Almost got it:
this->x = Parent::x;
this
is a pointer.