Help me!
what is operator overloading?explain its types, with examples

It's the method by which you give operators a new definition, particularly within classes. Most helpful with appropriate math, comparisons, and the input/output operators.
Google is your friend. Here's one fairly understandable explanation, with example, that comes up early in the 310,000 hits.

C++ tries to make user-defined data type much the same way as the built in data type.
We use different kind of operators with the bulit in data type . What about using those operators with the user defined data types, eg classes.

Thats where operator overloading comes in.It is the mechanism of giving special meaning to an operator, in our case for the user defined data type.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.