callling same class function in same class cpp code example
Example: c++ call method in same class
class Example{
void A(){
//do something
}
void B(){
this->A();
// or
A();
}
}
class Example{
void A(){
//do something
}
void B(){
this->A();
// or
A();
}
}