it could be not good question and i know i need more time to learn about it 
but i'm really wondering how to make it work 
here is my code 
#include <bits/stdc++.h>
using namespace std;
class Parent{
    protected:
        int value;
        int size;
    public:
        Parent();
        Parent(const Parent &p);
};
Parent::Parent()
{
    this->value = 0;
    this->size = 0;
}
Parent::Parent(const Parent &p)
{
    this->value = p.value;
    this->size = p.size;
}
class Child:public Parent{
    public:
        Child();
        Child(const Parent& p);
};
Child::Child()
{
    this->value = 0;
    this->size = 0;
}
Child::Child(const Parent& p)
{
    this->value = ??
    this->size = ?? 
}
as i want  to use parent class as a parameter in an inherited child class,
the problem is i can't use p.size or p.value in child class. 
is there any way to solve this problem? 
thank u for read this.
 
     
    