Difference between Operator overloading and Functional
overloading?
Answer Posted / r
Function overloading is when a class inherits from another class and codes a functionality for a function defined in the base class.
Operator overloading is when the default behaviour of operators (+, =, ==, etc.) is modified by user defined actions.
Thanks.
| Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What are the vectors in c++?
What does std mean in c++?
Write a Program to find the largest of 4 no using macros.
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
Which programming language should I learn first?
Can we delete this pointer in c++?
Why do we use structure in c++?
Do the parentheses after the type name make a difference with new?
What is static class data?
Are vectors faster than arrays?
What is the difference between a pointer and a link in c ++?
How do I get good at c++ programming?
Can we use pointers in c++?
What is the function to call to turn an ascii string into a long?
What is an arraylist c++?