Hi,
For functions the memory is allocated only once but
for each individual object the meemory is allocated
separately.
regards
chandra sekhar
> Hi Ankush
> I think memory for the functions is allocated for
> every object not only once
> as they are executed independently for each object
> and function's variables require sperate storage.
> Pls correct if something is wrong.
> Regards
> Guarav
>
> Ankush Jain <[EMAIL PROTECTED]> wrote:
> hello,
> memory is allocated in stack memory and heap memory.
>
> after an object of a class is created, variables are
> allocated in stack memory(as many times as the
> number of objects are created) whereas functions are
> allocated in heap memory (only once).
>
> i know very litle about this, so i can be wrong too.
> bye
> ankush.
>
> > Hi All,
> > I would like to know the answer of the following
> > question?
> > Let assume that you have a class A and it has 2
> > functions. So while creating an object for the
> given
> > class A, how the memory gets allocated to the
> object?
> > Is the memory gets allocated from the reference of
> the
> > object files?
>
__________________________________
Do you Yahoo!?
Send a seasonal email greeting and help others. Do good.
http://celebrity.mail.yahoo.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
To unsubscribe : [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4854
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/