answersLogoWhite

0


Best Answer

In C# only class instances can have a destructor, whereas both class and struct instances can have a destructor in C++. While syntactically similar, a C++ destructor executes exactly as written, whereas a C# destructor merely provides the body of the try clause of the class' finalize method.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between destructors in c plus plus and c sharp?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between cc plus plus and c sharp?

C# is inherited from c++ with some additional features


What is the difference between private stafford and plus student loans?

What is the difference between private stafford and plus student loans?


What is the difference between the phone sharp fx and the sharp fx plus?

Ths Sharp FX Plus gets an an upgrade with Android, and a much rounder body that smooths over some of its predecessor's rough edges. In addition to a virtual keyboard equipped with Swype, the Sharp FX Plus has a slide-out QWERTY for composing longer texts and messages. It supports AT&T's 3G speeds, Wi-Fi, and GPS. It has a 3.2-inch touch screen and a 3-MP camera


What is the difference between pointers in c and c plus plus?

Nothing.


What is the difference between be plus ing and get plus ing?

There are no such terms in C++.


What are the applications which visual c plus plus can work and visual c sharp won't work?

I can't think of any areas in which one would work over the other. The difference between the two languages is more likely to be performance and speed.


What is the difference between statements in c plus plus charconstp and char constp?

There is no difference. Both statements are invalid.


What is the difference between Nike plus and Nike plus Active?

They have different names


What are the various concepts of c plus plus?

1.Classes and Objects 2.Constructors and Destructors 3.Inheritance 4.Polymorphism 5.Dynamic Binding


What is the difference between plus 8 and -12?

-4


What is the difference between DVD plus r and DVD plus rw?

rightable and rewightable


Difference between void and devoid in c plus plus?

There is no such thing as devoid in C++.