Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

Syntax for C++ Operator Overloading

class className {
    ... .. ...
    public
       returnType operator symbol (arguments) {
           ... .. ...
       } 
    ... .. ...
};
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Syntax #Operator #Overloading
ADD COMMENT
Topic
Name
2+9 =