How to stop conversions among objects?
Answers were Sorted based on User's Feedback
Answer / kavitha
If any situation like that the constructor should build the
objects and should not get used for carrying out
conversions, In that situation we are required to use the
explicit keyword with the constructor.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
write a program that a 5 digit number and calculates 2 power that number and prints it.
2 Answers Vimukti Technologies,
Write a program to reverse a linked list?
8 Answers Catalytic Software, Satyam,
How do you invoke a base member function from a derived class in which you’ve overridden that function?
What are the two types of comments, and how do they differ?
Evaulate: 22%5 a) 2 b) 4 c) 0
Is swift faster than go?
Write a Program to find the largest of 4 no using macros.
C++ program output? Explain output of this program. #include <iostream> using std::cout; using std::cin; int main() { cout<<cout<<' '; cout<<cin; return 0; } It prints some address in hexadecimal. what is it?
How can a struct in c++ differs from a struct in c?
How should runtime errors be handled in c++?
What can I safely assume about the initial values of variables which are not explicitly initialized?
Should I learn c or c++ or c#?