Re: OOP Clarification
Re: OOP Clarification
- Subject: Re: OOP Clarification
- From: Rick <email@hidden>
- Date: Fri, 4 Jan 2002 17:28:12 -0600
On Friday, January 4, 2002, at 05:19 PM, Greg Titus wrote:
On Friday, January 4, 2002, at 02:41 PM, Rick wrote:
Same applies to Obj-C...you don't have "self" and "super" inside those
class methods, so you can't override or access parent class methods.
But, just as shown above, you can have the same class methods in
multiple Obj-C classes.
Um... no. You do have self and super in class methods, and you can
easily override and access parent class methods because classes are
first-class ("real") objects. They are normal methods in every respect
except that "self" is a Class object.
Ahh..I had thought it was the same as in C++...thanks to you (and
others) for the correction.
--------------------------------------------------
Ricky A. Sharp Instant Interactive(tm)
Founder & President www.instantinteractive.com
mailto:email@hidden
--------------------------------------------------