![]() |
Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk |
|
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Registered User
Join Date: Jun 2015
Posts: 246
|
![]()
Imagine a class named TransmitData, whose function is to transmit data, and another class named ReceiveData, whose function is to receive data. Now imagine that you want to create a class named SocketPort, whose function is to transmit and receive data. In order to accomplish this, you would want to derive SocketPort from both TransmitData and ReceiveData.
|
![]() |
![]() |
![]() |
#2 |
Registered User
Join Date: Aug 2014
Location: bangalore
Posts: 416
|
![]()
When a class is derived from two or more base classes, such inheritance is called Multiple Inheritance.
It allow us to combine the features of several existing classes into a single class. For example, Petrol is derived from both liquid and fuel. |
![]() |
![]() |
![]() |
Bookmarks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
multiple domain/virtual hosting | Phoenix0 | Web Hosting Discussion | 2 | 12-27-2001 05:40 PM |
Partner With Multiple PPC Engines: Fill Your Own Inventory | LaNMaN | Making Money with CPC and/or CPM Programs | 11 | 09-19-2001 03:31 PM |
Zonify spawns multiple popups with their banners! | fatale | Making Money with CPC and/or CPM Programs | 3 | 08-15-2001 04:18 PM |
Multiple listings in Yahoo | Tim | Marketing Your Website Online | 2 | 10-22-2000 02:40 PM |
Teknosurf & multiple sites | Ariakas | Making Money with CPC and/or CPM Programs | 2 | 02-28-2000 09:58 PM |