Found this code in an Introduction to C++ course presentation. It is refering to working with classes as Data Types. The thing I don't understand is line 5, the Bounded_Stack function definition. What does the ":" means there and later the "stack_ (len), top_ (0)". I can understand basic C++ but have never encountered this sintax before.
The code:
#include "Vector.h"
template <class T>
class Bounded_Stack {
public:
Bounded_Stack (int len) : stack_ (len), top_ (0) {}
// . . .
private:
Vector<T> stack_;
int top_;
};