Query regarding dynamic library
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