Check out example codes for "heredar constructor c++". It will help you in understanding the concepts better.

Code Example 1

class Bar {
  public:
      Bar(int weight, int height);
}

class Computer: public Bar {
	public: 
	   Computer(int weight, int height): Bar(weight, height) {};
};

Learn ReactJs, React Native from akashmittal.com