How to stop conversions among objects?

Answer Posted / vk

Using explicit keyword in the constructor

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the copy-and-swap idiom?

807


What is runtime polymorphism in c++?

801


What is pointer in c++ with example?

741


Can a constructor return a value?

848


What is the basic structure of a c++ program?

789






How a modifier is similar to mutator?

852


Why is c++ is better than c?

695


Where are setjmp and longjmp used in c++?

820


Is main a class in c++?

738


What are containers in c++?

726


What is std :: endl?

774


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

820


What is private inheritance?

817


Can we use this pointer in a class specific, operator-overloading function for new operator?

803


What are the three forms of cin.get() and what are their differences?

820