A Destructor is also a member function of a class, which deallocates the memory allocated to an object. ... Constructor is used to initialize the instance of a class.A constructor in Java is a block of code similar to a method that's called when an instance of an object is created.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|