I'm having difficulty with what I think is classes (Code below), I've read up on so much about classes yet during my tutorial lessons I find certain aspects difficult to grasp.
Basically the idea is to output a shape on the screen using an object orientated method. I cannot for the life of my understand what the following code means. Both vertex and Rhombus are classes but what is going on after that.
I just really need to know where I can find the information about these following lines, how I manipulate them to call them in main etc. if anyone can even point me in the right direction using key words of what types of coding the lines use other than classes that'd be amazing. Thanks in advance, never posted before so, sorry if this is the wrong forum or something.
Rhombus::Rhombus(Vertex point, int radius) : Shape(point)
shapes.push_back(new Rhombus(Vertex(20, 20), 8));
edit - Thanks, seems I need to read up alot on constructors.