Re: Beginner's questions
Re: Beginner's questions
- Subject: Re: Beginner's questions
- From: Ondra Cada <email@hidden>
- Date: Tue, 16 Oct 2001 14:06:36 +0100
Philippe,
>
>>>>> Philippe Magdelenat (PM) wrote at Tue, 16 Oct 2001 11:24:22 +0200:
PM> Q) What about abstract class (in the java meaning of abstract class) ?
PM> A) I've seen the previous answer and ok but it's still too bad...
It is not. Tell me what you need it for, and I'll thell you how to design
the thing properly ;)
PM> Q) Is there anything like a private, protected, public method in
PM> Objective C. I know that we speak of message and not of method but still,
PM> it would be nice to restrict the availability of messages considering
PM> their scope (am I clear ?)...
Yep. Nope, all methods are always public. Again, in dynamic system it would
not be possible to do it otherwise.
PM> Q) Still in java, is the notion of package (or something close) available
PM> to organize my classes ?
Use prefixes.
PM> Q) Isn't the [[receiver message1:xxx] message2:yyyy:zzzz] a little
PM> outdated ? Especially on a mac keyboard where no [ or ] is available ?
PM> Yes I know how to type them but still...
Dunno which keyboard you use; mine has "...yuiop[]" in the second row.
As for the syntax, I can't understand what drives you to using those
terrible and unintelligible things like foo.bar(1,2,3,"x",7) instead of
extremely legible [foo barWithNumber:1 count:2 size:3 name:@"x" value:7] or
so.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc