How to stop conversions among objects?

Answer Posted / v.senthil kumaran

Declare operator function (dummy) for assignment operator
in the private section of the class.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are move semantics?

667


What is while loops?

613


what is data encapsulation in C++?

600


What is abstraction with real time example?

612


What are built-in functions? What is the syntax for the definition?

564






Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

558


Define friend function.

562


Do you know what are pure virtual functions?

636


Define a pdb file.

635


Differentiate between a constructor and a destructor in c++.

558


What is command line arguments in C++? What are its uses? Where we have to use this?

571


an operation between an integer and real always yeilds a) integer result b) real result c) float result

704


What are the various compound assignment operators in c++?

546


What is prototype in c++ with example?

556


What is object in c++ wikipedia?

568