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
What does I oop mean?
What is a superclass in oop?
What is class and object in oops?
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?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What do you mean by variable?
Where You Can Use Interface in your Project
What is abstraction in oops with example?
Why do we use inheritance?
How do you define social class?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What are the benefits of polymorphism? Write a program to implement OOPS concepts such as
inheritance, polymorphism, friend function, operator
overloading? Write a c++ program to display pass and fail for three
student using static member function is there any choice in opting subjects like 4 out of 7