Can we create a virtual constructor in a class?

197. Can we create a virtual constructor in a class?

  1. Yes
  2. No

Answer: B) No

Explanation:

No, we cannot create a virtual constructor in a class. Other than inline, no other keyword is allowed in the declaration of the constructor.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.