@niiraj874u is correct. You want 2 classes. One for the boy and one for the rock.
Generally speaking, different nouns should become different classes.
Each noun, a boy and a rock in this case, will have different actions (functions) to perform: the boy will jump, the rock will roll (I guess). And these functions should be encapsulated into the separate classes depending on which object does which action.