Stack contructor


In this we created a stack contructor.
If we do not do this it will give an error when we try to call the methods of this class.Why is it the case?