Aufgabenblatt 2 preconditions.

This commit is contained in:
Michael Reiter
2022-03-21 15:20:20 +01:00
parent 322c15576b
commit 06d7e6dfaf
2 changed files with 6 additions and 1 deletions

View File

@ -8,6 +8,7 @@ public class BodyQueue {
//TODO: declare variables.
// Initializes this queue with an initial capacity.
// Precondition: initialCapacity > 0.
public BodyQueue(int initialCapacity) {
//TODO: define constructor.
@ -16,6 +17,7 @@ public class BodyQueue {
// Initializes this queue as an independent copy of the specified queue.
// Calling methods of this queue will not affect the specified queue
// and vice versa.
// Precondition: q != null.
public BodyQueue(BodyQueue q) {
//TODO: define constructor.