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.
Why is XML InfoSet specification distinct from the Xml DOM? Explain what does the InfoSet attempt to resolve?
Explain DataAdapter class in the ADO.NET?
Differentiate between the Finalize() and Dispose()?
Is it possible to create a Windows Service by using WPF?
How the customized properties of .NET application can be retrieved from XML .config file?
Why there is a requirement of user-defined controls?
Can the 'throws' clause can be used to raise an exception?
Distinguish between read-only and constants variables which is used in the programs?
What do you mean by the term WPF?
Differentiate between sliding-time expiration and absolute expiration?
18,76,764
1960904 Asked
3,689
Active Tutors
1431653
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!