heredar constructor c++

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

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

Source

Also in C++: