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 polymorphism in c++? Explain with an example?

607


What is meant by a delegate?

610


Explain one method to process an entire string as one unit?

936


Describe friend function & its advantages.

717


What is the use of lambda in c++?

583






Define namespace in c++?

652


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

588


What does std :: flush do?

692


Describe private, protected and public?

602


What is a template in c++?

637


Explain how functions are classified in C++ ?

811


What is an adaptor class in c++?

608


Explain the differences between private, public and protected and give examples.

568


What is c++ mutable?

707


What is a namespace in c++?

602