What is Operator overloading ?
Operator overloading mean giving the new task, behavior and new meaning to existing operators.
Like inbuilt data type possible that statement int x=a+b; same as user define data type possible this statement s3=s1+s2; and that is main aim of object oriented programming.
Rules of operator overloading :
Function/op Unary op. Binary op.
Member function no argument 1 argument
Friend function 1 argument 2 arguments
In this video lecture cover the unary operator overloading using member function. ++ Prefix and postfix increment operator overloading and also ( - ) minus sign overloading. Friend is not class member so we can pass one argument in unary operator overloading.
En esta página del sitio puede ver el video en línea Unary Operator Overloading Using Friend Function in C++ Programming Language de Duración hora minuto segunda en buena calidad , que subió el usuario Ashoksinh Zala Academy 06 septiembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 27 veces y le gustó 2 a los espectadores. Disfruta viendo!