Operator overloading

for cout<<v ; function is created outside the class but in case of v<<cout; sir said the function can be created in class.Why is this possible?

please tell the time stamp u are talking about
so that i can explain easily

Time stamp starts at 56:50

Bhaiya ne jaisa bola
ki header file khokle nhi update kr sakte
( obviously kafi sochke code kia gaye h header files) to aisa ho sakta h ki malfunction ho sakta h

jabki vector class meh update kar sakte h

issue h header file meh likhne se

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.