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 outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5

16 Answers   TCS,


what is an instance of a class

5 Answers  


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

0 Answers  


what is use to destroy an object? illustrate.

5 Answers   TCS,


What is a template?

7 Answers  






How would you stop a class from class from being derived or inherited.

18 Answers   Ness Technologies,


What is encapsulation c#?

0 Answers  


what is new operator in c++

1 Answers  


what is the main difference between c and c++?

386 Answers   AZTEC, B.Tech, CMC, College School Exams Tests, HCL, IBM, ITM, Khalsa Institute, Microsoft, Oracle, Sanjeevni Institute, TCS, Tech Mahindra, Wipro, ZeOmega,


Can destructor be overloaded?

0 Answers  


Do you know about multiple inheritance?

1 Answers   Motorola,


What is balance factor?

0 Answers  


Categories