Welcome! Log In Create A New Profile


Ass3 revision

Posted by Anonymous User 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Anonymous User
Ass3 revision
September 22, 2006 01:18PM
Hi,I have trouble understanding the use of this-> .

Can someone please explain to me when this-> is used.In ass3 it whas used in the constructor for Account_impl but it was not used in the deposit function.Why?
In the constructor it is this->m_balance.
In the deposit function it is just m_balance.

Re: Ass3 revision
October 05, 2006 07:54AM
I seem to remember that in using this causes the server object to activate if it has the implicit activation policy. maybe in the first case the author of the code wanted to activate the object and in the second he might have been sure that the object must be activated by now. that might also have been _this-> though. hope this helps...
Sorry, only registered users may post in this forum.

Click here to login