Class with instance and inheritance with instance

I want to make 2 classes, first class that will be called Object and second Rectangle. In Object class there will be all functions for moving, rotation, and recieving informations about that object. Second class will have private variable sf::RectangleShape and will inheritance all functions from the Object class (move, rotate...). For now i coded just this part of the code:

class Object {

private:

std::string name;

protected:

Object() = default;

Object(std::string);

public:

void setPosition(sf::RectangleShape, float, float);

void move(sf::RectangleShape, float, float);

void moveRight(sf::RectangleShape, float);

void moveDown(sf::RectangleShape, float);

void moveLeft(sf::RectangleShape, float);

void moveUp(sf::RectangleShape, float);

void Object::slideTo(sf::RectangleShape, float, float);

void setAngle(sf::RectangleShape, float);

void rotate(sf::RectangleShape, float);

void rotateLeft(sf::RectangleShape, float);

void rotateRight(sf::RectangleShape, float);

std::string* getName();

Position getPosition(sf::RectangleShape);

};

class Rectangle : public Object {

private:

sf::RectangleShape rectangleshape;

public:

Rectangle(std::string object_name) : Object(object_name) {}

};

Parts that are toiling me are: What is the proper way making default and overloaded constructor for both classes, How can i make Object class to move/rotate rectangleshape without having overloaded functions (move(sf::RectangleShape/*without this*/, float, float)) and should I. I would be very grateful if someone helped me.
push
Can someone help me with this?
Topic archived. No new replies allowed.