Concept of the Destructor
Explain concept of the Destructor?
Expert
A Destructor is a special method for the class and is called automatically whenever an object is to be finally destroyed. Name of the destructor is also same as the class name but it is followed by a prefix tilde (~). A destructor is used to free the dynamic allocated memory and thus release the resources. You may, implement a custom method which permits you to control the object destruction by invoking the destructor.
The main attributes of the destructor are as follows:
a) As constructors, destructors are also always public.
b) Destructors does not have any return type.
c) We cannot overload Destructors.
Distinguish between toolstrip drop-down button and toolstrip split button?
What do you understand by the JSON?
Write down the classes which derive from the abstract System.Windows.Shapes.Shape class in the WPF?
Define Server-side scripting and Client-side scripting?
Briefly describe contra-variance and covariance in .NET Framework 4.0 and give an example for both?
Write the two properties of the GridView control which have to be specified to turn on paging and sorting?
What is the function of Orientation property in a Menu control?
How can height of a combo box drop-down list can be adjusted?
State the use of the Connection object?
Explain the use of a Connection object?
18,76,764
1932666 Asked
3,689
Active Tutors
1432588
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!