0 votes
in C Plus Plus by

What is an Explicit Constructor?

1 Answer

0 votes
by

A conversion constructor is declared with the explicit keyword. The compiler does not use an explicit constructor to implement an implied conversion of types. Its purpose is reserved explicitly for construction.

Related questions

0 votes
asked Jun 15, 2020 in C Plus Plus by Robindeniel
+1 vote
0 votes
asked Feb 13, 2022 in OWASP Top 10 Vulnerabilities by SakshiSharma
...