Hello all,

I have a base class which is called person. I derived a class from person which is called patient. My question is can I derive two more classes (patient_student and patient employee) from derived class patient or should I derive them from person? If I can derive classes from derived classes how can I do that?

Appreciate for helps,

Recommended Answers

All 3 Replies

be careful no to have multiple base class. If so then use
virtual derivation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.