Content deleted Content added
m Disambiguated: Method → Method (computer programming) |
|||
Line 18:
===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 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{
|