Professional Documents
Culture Documents
Programming
MUHAMMAD IRTAZA SALEEM
This Pointer ->
Every object in C++ has access to its own address through an
important pointer called this pointer.
The this pointer is an implicit parameter to all member
functions. Therefore, inside a member function, this may be
used to refer to the invoking object.
C++ programming allows calling functions like this, when multiple functions called using a single
object name in a single statement, it is known as cascaded function call in C++.
obj.FUN1().FUN2().FUN3();
Let’s do some practice
- Create Box Class
- Non-Parametrized Constructor