When is a memory allocated to a class?

Answers were Sorted based on User's Feedback



When is a memory allocated to a class?..

Answer / pushpankar mishra

i woould like to clear one thing that object and instance
are two sligthly differnt things

int a; // 'a 'is instance
a=20;//'a' is a object

eg:object+instance
|

int a=20// object + instance;;

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More OOPS Interview Questions

what are the uses of C++

1 Answers  


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


what is the technical or oop name of object?

1 Answers  


how many types of notations are in java

1 Answers   National University of Modern Languages (NUML),


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

0 Answers  






what does exactly the linker do?

1 Answers  


What is the Advantage of Interface over the Inheritance in OOPS?

4 Answers  


Explain the concepts involved in Object Oriented programming.

0 Answers   Wipro,


Why polymorphism is used in oops?

0 Answers  


#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

0 Answers  


what are the different types of qualifier in java?

0 Answers   TCS,


how does a main() in C++ is different from main() in C?

7 Answers  


Categories