What is the correct syntax to define a function which overloads any operator, say + operator for bit_vector type?
What is the correct syntax to define a function which overloads any operator, say + operator for bit_vector type? Correct Answer FUNCTION “+” (L : bit_vector, R : bit_vector) RETURN bit_vector IS
Function overloading and operator overloading both are same except one point which is operator which is to be overloaded must be placed in double quotation marks. Otherwise, the syntax for both type of overloading is same.
মোঃ আরিফুল ইসলাম
Feb 20, 2025