I know the concept that we can call the Constructor both Explicitly
and Implicitly
, and i have tested both the scenarios(generally till now my all purp
If you make a function that takes a reference to a object of your class, and you pass it another type other than your object the constructor of your class will convert that type to an object of your class. Any one argument constructor is treated as a conversion constructor. If you declare that constructor explicit, then passing a different type other than your object to that function will not convert it and the compiler will return an error