Stack using vector, i have a doubt in the video

Stack is a class which contains a data member of data type vector. then while declaring an object of the class why did we declare it like a vector , in the video it is defined as Stack s; but why not as Stack s; simply ?

hey @Anchal, we used vector v; because vector is templated class in C++ standard template library. Templated class means I can create vector for any datatype like char, int, float and we need to mention it while declaring vector.