Constructor Quiz-Asked in Interviews.

Placewit
Jan 29, 2022

--

Like constructors, can there be more than one destructors in a class?

A) Yes

B) No

C) Can’t say

D) Less information provided

Solution: B is correct

There can be only one destructor in a class. Destructor’s signature is always ~ClassNam() and they can not be passed arguments.

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.

--

--

Placewit
Placewit

Written by Placewit

Upskilling students for tech placements!

No responses yet