Symphony Services Interview Question for Production Engineers


Country: India
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
1
of 1 vote

Destructor can't be called explicitly.. that is you can't call destructor using object. so overloading it does not make any sense

- Antony January 05, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

destructors can be called explicitly !!
obj.~ClassName();

- BJ September 16, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Because when a derived destructor is called, all the base destructors should also be called.

- gavinashg@yahoo.com September 20, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

when constructor is overloaded, the base class constructor is also called during derived class object creation.

- lipun4u September 20, 2011 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Destructor can not be overloaded because the object is going to end and there will only one to cleanup any destructor.
In case of run time overloading, when we make destructor as pure virtual we have to provide body (it may contain only open and close braces)as compiler assumes the body of virtual with respect to the by default definition provided by compiler.

- Manish Singh September 24, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Simply because an object cannot be destroyed in one way or another, it should be destroyed completely anyway!

- sergey.a.kabanov January 11, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

123

- 123 November 15, 2019 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

There is no practicality to provide the overloaded destructor, as C++ will not know which destructor to call when object goes out of scope.

- Sonu April 12, 2020 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

I think we are talking here about overloading !

- RK September 21, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
-1
of 1 vote

Destructor can not be overloaded

- sumir manna December 03, 2013 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More