C/C/C++

Advertisement


Question
Joydeep! Can you please give me code to explain multiple inheritances in both C and C++?

Answer
Hi Vallish

Inheritance is a feature of OOP hence C++ supports it and not C. Where a classA is created from ClassB and ClassC. Inherting features of both the classes. For example a "Window Class" which is can be derived from many classes like "Toolbar Class" , "Button Class" , "Menu Class" etc thus taking features of all these classes.

For example of multiple inheritance you can try out this website http://www.scodz.com

in case if you still need example please don't hesitate to get back to me for further details

regards
Joydeep

C

All Answers


Answers by Expert:


Ask Experts

Volunteer


Joydeep Bhattacharya

Expertise

Ability to solve C and Data Structure problems and puzzles with simple and easy to understand logic.

Experience

C, C++, Java, Data Structure, PHP, Web Designing

Organizations
http://www.scodz.com Designation: webmaster

Publications
http://www.scodz.com

Education/Credentials
Master of Computer Applications

Past/Present Clients
http://analysingc.50webs.com http://www.funforu.com

©2012 About.com, a part of The New York Times Company. All rights reserved.