हिंदी

Describe the syntax of an Operator Function. - Computer Science 1

Advertisements
Advertisements

प्रश्न

Describe the syntax of an Operator Function.

उत्तर

return-type class-name : : operator op(argument list)
{
function body//task defined
}

Where return type is the of value returned by the specified operation and op is the operator being overloaded.
The op is preceded by the keyword operator. Operator op is the function name.

shaalaa.com
C++ Programming
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2016-2017 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×