why destructor is not over loaded?

Answer Posted / gyana

In c# we cannot over load the desructor as because
destructor is presented by defaultly in c# and we cannot
create any object of it.we cannot also define a new
desructor.It cannot be explicitly used.for this reason we
cannot invoke the desructor and it cannot be overloaded..

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1778


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1655


What is meant by multiple inheritance?

736


Why is object oriented programming so hard?

616


#include #include #include #include void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

3246






Describe these concepts: Polymorphism, Inheritance and Abstraction.

610


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2753


program for insertion ,deletion,sorting in double link list

2276


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

942


Can main method override?

583


What is polymorphism give a real life example?

557


Can destructor be overloaded?

594


Why interface is used?

549


Explain virtual inheritance?

682


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1782