Re: Virtual concept in Objective-C
Re: Virtual concept in Objective-C
- Subject: Re: Virtual concept in Objective-C
- From: "Shawn Erickson" <email@hidden>
- Date: Tue, 18 Jul 2006 23:40:36 -0700
On 7/18/06, Vinay Prabhu <email@hidden> wrote:
Hi,
I have few basic doubts in Objective-C.
Is there virtual concept in Objective - C as in C++?
Or is it default in Objective C?
Review...
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_4_section_6.html>
While overriding the methods from super class,
Do we need to declare the function prototype in the derived class header
file?
No.
When I have overridden the super class functions, I have tried both,
declaring the prototype and by not declaring the prototype in the derived
class header file.
In both the cases it worked fine.
So is it necessary to declare the prototype?
No.
If not, if the prototype is
declared in derived class is there any adverse effects?
No.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden