What is the difference between a constructor and a destructor?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

What is the difference between pass by reference and pass by value?

12 Answers   Pfizer, TCS,


to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123

2 Answers  


suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?

3 Answers   EA Electronic Arts,


How to use CMutex, CSemaphore in VC++ MFC

0 Answers   Persistent, TCS,


What is the real life example of polymorphism?

0 Answers  






what is difference between objects and function

3 Answers  


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

0 Answers  


How do you achieve runtime polymorphism?

0 Answers  


how many types of notations are in java

1 Answers   National University of Modern Languages (NUML),


Write a program to multiply 3x3 matrics

1 Answers  


Difference between over loading and over ridding?

12 Answers   CTS, Patni, Softvision Solution,


How is data security provided in Object Oriented languages? ?

5 Answers  


Categories