Create a class Stack and implement push and pop operations in it
Create a class Stack and implement push and pop operations in it. Output: 10 pushed into stack 20 pushed into stack 30 pushed into stack 30 Popped from stack Top element is : 20 Elements present in stack : 20…