This pointer and constructors

  1. Can you explain about ‘this->’ pointer in constructors?
  2. Please also explain why there is no default parameter in default constructor and why sometimes statements within this ‘{}’ bracket are left empty?

Feel free to share other resources helpful as links or code to elaborate on this

Thanks

  1. https://www.geeksforgeeks.org/this-pointer-in-c/
    basically this is used to point to current object variable
    used generally when the name of function paramter same as data member.

because the default constructor is defined with no parameters hence no arguments are
given
incase we need some additional paramter
we overload the constructor

just in case we don’t need some functionality right now but can be used possibly in future or

can increase the readability of code