If I have private data members in base class, what about my derived class? How do I write methods that use these private base class members... I know that making them public would solve the problem, but then what would be the point of inheritance, right? So, it is not the solution.
Like (sort of pseudo code)
Code:
class point {
private:
   int x, y;
public:
   int coord() { //whatever }
};
class point_shift : public point {
public:
   int coord_shifted() { //how do I use x and y here??? }
};