answersLogoWhite

0

AllQ&AStudy Guides
Best answer

No. Operator and/or function overloading is only a C++ thing.

This answer is:
Related answers

No. Operator and/or function overloading is only a C++ thing.

View page

Java does not support opperator overloading, so the answer to your question is: none.

View page

C does not support operator overloading.

If you mean C++ operator overloading, it depends on exactly what you wanted to do. If you wanted to '+' to strings, then you could write:

string operator+(string a, string b) {

// do something

}

View page

operator overloading

View page

Function overloading is multiple definition with different signatures(the parameters should be different) for the same function. The parameter list have to be different in each definition. The compiler will not accept if the return type alone is changed.

Operator overloading is defining a function for a particular operator. The operator loading function can not be overloaded through function overloading.

View page
Featured study guide

What does a slashing hand motion over the neck mean by a waterskiing participant

Under the Navigation Rules in which situation is it OK to break the rules

What should you always do when a person falls overboard

Which of the following is required to operate a boat in Alaska

➡️
See all cards
No Reviews
More study guides
5.0
1 Review

No Reviews
Search results