I wrote a method (that works fine) for a() in a class. I want to write another method in that class that calls the first method so:
void A::a() {
do_stuff;
}
void A::b() {
a();
do_stuff;
}
I suppose I could just rewrite b() so b(A obj) but I don't want to. In java can you do something like this.a().
I want to do obj.b() where obj.a() would be called as a result of obj.b().