Objective C language [NEWBEE QUESTIONS]
Objective C language [NEWBEE QUESTIONS]
- Subject: Objective C language [NEWBEE QUESTIONS]
- From: "Alexander F. Hartner" <email@hidden>
- Date: Fri, 30 Jan 2004 14:08:54 +0200
I have been playing with objective C for some time now, but the number
of questions seem to increase as I learn more about the language. My
background lies in Java development so I am familiar with OO.
1. ) Private methods:
Is it possible to declare a method as private. From what I found out so
far it is not, but a similar behaviour may be achieved by declaring a
private category. How would one declare a private category. One example
I found simple named the category "Private", but this seems to easy /
wrong to me.
2.) Abstract methods:
Is is possible to declare methods / classes as abstract. Conceptually I
see that it is possible, but how is it done in practice to prevent
instantiation of a class?
3.) Inheritance of the constructor / class methods
Is seems to me that the constructor is inherited as well. Does this
mean that inheritance covers class methods (i.e. +) as well ?
4.) Runtime adoption
This might be the most misguided question of all. Is it possible to
adopt a protocol at runtime, i.e. without having it declared before. I
vaguely remember reading in a tutorial that the Objective C language
supports a feature along the lines of adopting a protocol at runtime.
Is there such a thing and how is it done.
Thanks for all your help
Alex
Alexander F. Hartner
eMail : email@hidden
mobile : 072 180 6189
The programmers of old were mysterious and profound. We cannot fathom
their thoughts, so all we do is describe their appearance.
Aware, like a fox crossing the water. Alert, like a general on the
battlefield. Kind, like a hostess greeting her guests. Simple, like
uncarved blocks of wood. Opaque, like black pools in darkened caves.
Who can tell the secrets of their hearts and minds? The answer exists
only in the Tao.
-- Geoffrey James, "The Tao of Programming"
_______________________________________________
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.