c++ call method in same class

C++
class Example{
  void A(){
    //do something
  }
  
  void B(){
    this->A();
    // or
    A();
  }
}
Source

Also in C++: