constructors are part of c++ OOP and are usually used with class (although can be used with struct). See http://www.learncpp.com/cpp-tutorial...d-programming/

In c++ OOP, there is really no difference between a class and a struct. The only difference is that for struct all members are default public whilst with class all members are private by default.