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

How do you initialize a string in c++?

779


Is set c++?

780


What are all predefined data types in c++?

842


Explain deep copy and a shallow copy?

836


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

1998


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

1846


What's the order in which the objects in an array are destructed?

1191


Can we declare a base-class destructor as virtual?

784


Is c++ still in demand?

910


Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D

3426


Write about the use of the virtual destructor?

823


what is multi-threading in C++?

843


Why do we use constructor?

847


Explain how we implement exception handling in c++?

825


What are default parameters? How are they evaluated in c++ function?

935