«« ( Date ) »» // «« ( Thread ) »» // kdp - 2010

super()

by Nemanja Simović
ponedeljak, 31. maj 2010 - 23:23.

Da li neko zna zašto se u konstruktoru klase MsgBoxList poziva konstruktor nadređene klase, odnosno klase Object, "super()"?

---
package rs.ac.bg.etf.kdp.zaki.concurrent;

import java.util.LinkedList;
import java.util.List;

public class MsgBoxList implements MsgBox {

private List<Msg> buffer;
private int capacity;

public MsgBoxList(int capacity) {
super();
buffer = new LinkedList<Msg>();
this.capacity = capacity;
}
---