Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

THIS ?

Status
Not open for further replies.

jayjay60

Programmer
Jun 19, 2001
97
FR
I would like to know if someone could answer me to simple problem: We suppose that we create a class MyClass where there are methods(method1(), method2()...) where one have to use another method of MyClass. For example, suppose that method1 need of method2 in its implementation, how could i do that?

thanks in advance

jayjay
 
void Method1()
{
//...
Method2();
//...
}

I'm new. Hope this is what you wanted. :) Take it Easy :)
Kartik.S
 
Kartiksg's post is correct but with the title of this thread it is just an assumption but you may want to do:

void Method1()
{
this->Method2();
}


Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top