how to find no of instances of an object in .NET?



how to find no of instances of an object in .NET?..

Answer / gouri patil

When u create object of class it invoke Constructor. So
declare variable and increase in Constructor and
parametrised Constructor you will get number.

Is This Answer Correct ?    7 Yes 0 No

Post New Answer

More OOPS Interview Questions

what is the advantage in software? what is the difference between the software developer and Engineer

1 Answers  


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

0 Answers  


Can static class have constructor?

0 Answers  


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

0 Answers  


Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

4 Answers   EA Electronic Arts,






What is this pointer in oop?

0 Answers  


What is R T T I ?

6 Answers   Ness Technologies,


What is destructor give example?

0 Answers  


i^=j; j^=i; i^=j; value of i,j

1 Answers  


What is encapsulation c#?

0 Answers  


what is the difference between class and object?

9 Answers  


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

0 Answers  


Categories