• 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
Query regarding dynamic library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Query regarding dynamic library


  • Subject: Query regarding dynamic library
  • From: "parag vibhute" <email@hidden>
  • Date: Mon, 10 Dec 2007 15:02:26 +0530


Hi,

Dynamic library mentions following statement (Page 28):

Dynamic libraries that make a class available to its clients must include the virtual keyword in the declaration of all the class's methods, except for its constructors and destructors. For example, following listing shows the declaration for the Person class.

class Person {
private:
char _person_name[30];
public:
Person();
virtual void set_name(char person_name[]);
virtual char* name();
};


Why is it necessary to include virtual keyword here?

Thanks,
Palav

--

There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Query regarding dynamic library
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: C prototype warning
  • Next by Date: Re: How to add classes in Xcode 3.0
  • Previous by thread: Re: How to add classes in Xcode 3.0
  • Next by thread: Re: Query regarding dynamic library
  • Index(es):
    • Date
    • Thread