When is a memory allocated to a class?

Answer Posted / ramakrishna

A class is a template.As Teginder said,it will get
allocated memory when u create object of that class.

Is This Answer Correct ?    22 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1618


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1731


What is encapsulation in oops?

633


Plese get me a perfect C++ program for railway/airway reservation with all details.

3526


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1493






What is variable example?

672


What is the point of polymorphism?

674


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?

1672


What is inheritance and how many types of inheritance?

707


What is class in oop with example?

705


What is overriding in oops?

705


Why is polymorphism needed?

694


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1939


Is enum a class?

687


Why interface is used?

642