Hi.
I am stuck in the following problem and I am hoping that if anyone can help me in this.
So imagine a class..
1 2 3 4
|
Class myClass{
func1(params );
func2(params);
private:
|
} | |
Now.. lets say in definitations, I want to use the func2 definition in func1..
how do i use it?
1 2 3 4 5 6 7 8
|
myClass::func1()
{
//needs to call func2() here..
}
| |
It would nice if anyone can guide me in this..
Thanks a lot for help and suggestion.
best regards
Last edited on
Im a bit confused by the question, if it's part of the same class you can just call it directly
right, and have you tried compiling that? It will work just fine.
also if youre only going to have fun2 be called by func1 it would be better to make it private.