Can we define a destructor inside the structure?

173. Can we define a destructor inside the structure?

  1. Yes
  2. No

Answer: A) Yes

Explanation:

Yes, just like class, we can define a destructor inside the structure in C++.

Comments and Discussions!

Load comments ↻






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