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 polymorphism in oop example?

0 Answers  


When not to use object oriented programming?

0 Answers  


sir plz send me a set of questions that been frequently held in written examination during campus selection.

0 Answers   TCS,


Can a destructor be called directly?

0 Answers  


Is enum a class?

0 Answers  


can you give the dynamic polymorphism types?

2 Answers   Wipro,


How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)

1 Answers  


What are the advantages of polymorphism?

0 Answers  


Is this job good for future? can do this job post grduate student?

0 Answers  


What do you mean by overloading?

0 Answers  


WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 Answers  


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


Categories