method inside another method of same class

Is there any way to do this? What I am trying to do is call a method (functionTwo) from inside of another method (functionOne). Both of these methods are of the same class. I also want the option to call that same method (functionTwo) outside of the first method (functionOne)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

class boxType
 {
  public:
    void functionOne();
    void functionTwo();
 };

void functionTwo()
 {
   code..........
 }

void functionOne()
 {
   void functionTwo()
 }
You would be able to do that, but you wouldn't declare the function as void inside of the other function. If I'm correct, you can only call a function inside of another function like this:
1
2
3
4
5
6
7
void functionTwo(){
   code....
}

void functionOne(){
    functionTwo();
}

like you could have an adding function inside of a calculate function.
Topic archived. No new replies allowed.