Amazon.com Widgets Class (and Superclass) Memory Allocation
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 19, 2013, 01:45:49 AM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Programming in Objective-C, 4th edition
| |-+  General Discussion
| | |-+  Class (and Superclass) Memory Allocation
Pages: [1]   Go Down
Print
Author Topic: Class (and Superclass) Memory Allocation  (Read 416 times)
braveand
Newbie
*
Posts: 10






« on: April 09, 2012, 02:43:40 PM »

Hi,
When we alloc-init an istance on the heap, under the hood we are also allocating heap space for all its superclasses?

Thanks in advance.
Logged
seerex
Full Member
***
Posts: 177


Email




« Reply #1 on: May 27, 2012, 07:42:29 AM »

Yes we are. An instance of an object, contains all variables and methods of it's superclasses, and thus, it has to allocate room for that as well.
Logged

Best Regards -
J.B.J
If you think i helped you could return the favor Wink

Subscribe to my channel on youtube: http://www.youtube.com/user/JBJProgramming

My apps:
- iTap Fruits (all countries)
- Toilet-Quiz (Denmark only)
- Zoo Kids (Denmark only)
- Diablo Item Database (All countries)
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.