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.
On this page of the site you can watch the video online Unary Operator Overloading Using Friend Function in C++ Programming Language with a duration of hours minute second in good quality, which was uploaded by the user Ashoksinh Zala Academy 06 September 2020, share the link with friends and acquaintances, this video has already been watched 27 times on youtube and it was liked by 2 viewers. Enjoy your viewing!