We can pass the this keyword in the constructor also. It is useful if we have to use one object in multiple classes. Let's see the example:
The output for the above snippet will be 10.