Classes and the Production of Objects
Classes and the Production of Objects
- Subject: Classes and the Production of Objects
- From: Brendon Bruns <email@hidden>
- Date: Fri, 09 Aug 2002 23:06:49 -0800
When you define a new class in a program, is an object created immediately
and automatically from that declaration (such as at runtime) or does the
class exist as raw code and need an instigator to make an object?
In my "Learning Cocoa" book, it is stated that a class can be assigned
methods and possibly have have variables that are created for it. So in
relation to the question I stated above, does this mean that a class can
exist without creating an object and in fact, it can do some work? Or are
the methods there in place to tell the class to create an object?
Finally, does an Instance refer to the Object that has been created by the
Class and it is the chunk of code in memory that actually processes data?
Therefore, an Instance would be another name for an active Object in
existence?
Thanks for any help! I have an annoying was of analyzing things too much
and it gets me into trouble when I try to understand a new "language" that
is not static and can exist in a multitude of forms.
Brendon Bruns
--
"If life gives you lined paper, write the other way"
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.