When is a memory allocated to a class?

Answer Posted / sourav das

when object is created of that class then only memory is
allocated.with out object there is no Existence of class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and types?

595


What is polymorphism explain?

680


can inline function declare in private part of class?

3654


What is methods in oop?

537


Can we create object of abstract class?

575






What exactly is polymorphism?

600


What is interface in oop?

656


What is overloading and its types?

611


Why is polymorphism important in oop?

629


#include #include #include #include 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

2061


What is advantage of inheritance?

685


What are the 4 pillars of oop?

666


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1453


State what is encapsulation and friend function?

695


Which is better struts or spring?

614