Content deleted Content added
m added link |
m Fixed my edit. |
||
Line 20:
===Multiple inheritance===
In a [[programming language]] that does not support [[multiple inheritance]] of base classes, wrapper functions can be used to simulate it. Below is an example of part of a [[Java|Java_(programming_language)]] class that "inherits" from LinkedList and HashSet. See [[Method (computer programming)|Method]] for further implementation details.
<source lang="Java">
public class Test implements LinkedList, HashSet{
|