In 9 line of this code of the lecture is it constructor calling;

and why 2 time class is made i am not understanding the code (function part as used class in function)

hello @kailash_01,
line no 9 is constructor and that is special syntax to intialise the variable of ur class.
refer this to read more -> https://www.learncpp.com/cpp-tutorial/8-5a-constructor-member-initializer-lists/

second class i.e solution is redundant ,you can print right view without making any solution class.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.