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 |
How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram
why the memory allocated with new cant be freed using free()
What are virtual functions?
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; wow *b; a.x = 22; b = &a; a.x = 23; cout << b->x; return 0; }
When you define a integer it gets stored in which data structure?(Stack or a heap)
What is class and object with example?
Whatis the difference between oop and object based language
Have you ever used threads?
can inline function declare in private part of class?
What is the diamond problem in inheritance?
How is exception handling carried out in c++?
What is the use of oops?