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

Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

841


Comment on c++ standard exceptions?

883


Explain what are accessor methods?

887


Is swift a good first language?

800


What are the operators in c++?

871


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

840


Explain what are the sizes and ranges of the basic c++ data types?

892


Can we make copy constructor private in c++?

836


What is scope in c++ with example?

861


Is there a c++ certification?

806


How can you quickly find the number of elements stored in a static array?

870


How do we implement inheritance in c++?

851


Is c++ a dying language?

836


Should the this pointer can be used in the constructor?

784


How do you declare a set in c++?

747