I am currently working on data structures and object-oriented contracts, especially in Java.
I am wondering what a class invariant of a size-constrained stack could be. I