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.
Nesta página do site você pode assistir ao vídeo on-line Unary Operator Overloading Using Friend Function in C++ Programming Language duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Ashoksinh Zala Academy 06 Setembro 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 27 vezes e gostou 2 espectadores. Boa visualização!