UNI task.

Hello! I've been given the following task : to design a class Robot that inherits class Machine, which has some fields (hands,legs,head), given an ability to catch an object, to turn around and so on.
So what's my problem: I'm willing to design the robot - by design I mean it's looks, shapes, colors, to actually make it move,turn around and catch an object being controlled, but have no experience in how to make that happen. I've been reading for the past 5 hours in the internet, but I'm really confused at this very moment.
Can anyone tell me how I should procedure? I would be really grateful if you do.
Thank you in advance :)
didn't whoever that gave you the task (a) first teach you anything that you might require to accomplish that task and (b) tell you how to proceed?
to design a class Robot


You're not meant to design a robot. You're meant to design a class. In C++, it will look like this:

1
2
3
4
5
6
class Robot : public Machine 
{
  hands_type thisRobotsHands;  // an object of type "hands_type", named "thisRobotsHands"
  legs_type thisRobotsLegs;
  head_type thisRobotsHead;
}
Topic archived. No new replies allowed.