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

How is class defined?

826


What is the difference between abstraction and polymorphism?

842


Why do while loop is used?

769


What is polymorphism in oop example?

727


Why multiple inheritance is not allowed?

810


What is abstraction in oops with example?

993


Whats oop mean?

787


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2057


Can we override main method?

835


What is polymorphism and types?

831


Explain virtual inheritance?

887


What is for loop and its syntax?

800


What is the diamond problem in inheritance?

815


write a program to find 2^n+1 ?

1775


Please send ford technologies placement paper 2 my mail id

1845