こうしたほうがいいか。

class Main{
 int x, y;
 void input();
 void output();
 void func();
public:
 void execute(){ input(); func(); output(); }
}