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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does I oop mean?

618


What is a superclass in oop?

671


What is class and object in oops?

613


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?

1584


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

2008






What do you mean by variable?

577


Where You Can Use Interface in your Project

1429


What is abstraction in oops with example?

778


Why do we use inheritance?

630


How do you define social class?

603


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1419


What are the benefits of polymorphism?

626


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4248


Write a c++ program to display pass and fail for three student using static member function

2818


is there any choice in opting subjects like 4 out of 7

1733