Unary Operator Overloading Using Friend Function in C++ Programming Language

Pubblicato il: 06 settembre 2020
sul canale di: Ashoksinh Zala Academy
27
2

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.


In questa pagina del sito puoi guardare il video online Unary Operator Overloading Using Friend Function in C++ Programming Language della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Ashoksinh Zala Academy 06 settembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 27 volte e gli è piaciuto 2 spettatori. Buona visione!