Use the concept of constructor override in C++ and create a class, which calculates areas of square, rectangle and a triangle. Override of the constructor should be controlled using the number of variables used for the object initialization. Feel free to use the method override in the same class. In the main function you should demonstrate examples for all three cases of the shapes.