• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Virtual concept in Objective-C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Virtual concept in Objective-C


  • Subject: Virtual concept in Objective-C
  • From: Vinay Prabhu <email@hidden>
  • Date: Wed, 19 Jul 2006 12:02:52 +0530
  • Importance: Normal

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?

While overriding the methods from super class,
Do we need to declare the function prototype in the derived class header
file?

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? If not, if the prototype is
declared in derived class is there any adverse effects?

Regards
Vinay

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or email@hidden
 _______________________________________________
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

  • Follow-Ups:
    • Re: Virtual concept in Objective-C
      • From: Dix Lorenz <email@hidden>
    • Re: Virtual concept in Objective-C
      • From: "Shawn Erickson" <email@hidden>
  • Prev by Date: Re: Writing application without Interface Builder
  • Next by Date: Re: Virtual concept in Objective-C
  • Previous by thread: Re: Environment/permissions on NSTask-launched app
  • Next by thread: Re: Virtual concept in Objective-C
  • Index(es):
    • Date
    • Thread