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 is c++ and its uses?

893


Difference between pointer to constant vs. Pointer constant

824


What is pure virtual function?

827


What is polymorphism & list its types in c++?

808


What is data binding in c++?

719


Mention the ways in which parameterized can be invoked. Give an example of each.

804


Explain explicit container.

852


How do you clear a map in c++?

828


How we can differentiate between a pre and post increment operators during overloading?

846


Why are pointers used?

761


What is the purpose of template?

833


Evaluate !(1&&1||1&&0) a) Error b) False c) True

953


What is a list c++?

842


Write my own zero-argument manipulator that should work same as hex?

811


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

815