Class::Class() {
this->func();
}
and
Class::Class() {
func();
}
Are there any differences between these two ways of calling a function?
Class::Class() {
this->func();
}
and
Class::Class() {
func();
}
Are there any differences between these two ways of calling a function?
Yes, this->var ensures you're working with instance variable - which may be useful when your instance variables may be shadowed inside a block.