When is a memory allocated to a class?

Answer Posted / namrata ahuja

when the object of that class is declared.

Is This Answer Correct ?    7 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1657


What is polymorphism explain its types?

684


explain sub-type and sub class? atleast u have differ it into 4 points?

1836


How to hide the base class functionality in Inheritance?

639


What is oops in simple words?

583






#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

2068


Give two or more real cenario of virtual function and vertual object

1853


What is encapsulation in ict?

608


Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.

2575


What is encapsulation with real life example?

572


What is encapsulation and abstraction? How are they implemented in C++?

637


Which is not an object oriented programming language?

544


c++ program to swap the objects of two different classes

1765


what are the ways in which a constructors can be called?

1583


Why interface is used?

554