Hi, I am making a program where I am to ask the user a series of questions and add up the amount they get right blah blah....
I have to ask them the area of a square, the perimeter of the square along with other shapes....
So I was going to have a square class, rectangle class etc etc...
These classes would then all inherit the scoring class which holds the variables which will be incremented when a question is right (or the other way round).
What I am stuck on though is a way in which when the user inputs their answer...does anyone have an idea how I could take this answer and make sure that it is passed to the correct shape class and the answer is checked against the correct method?
I think it will involve taking the answer from the textbox and sending it in to the shapes constructor, not sure how I would make sure I send it to the correct one though?
Hope that makes sense! I am not asking anybody to do anything for me, just whether they have any ideas about how to implement it!
Edited 5 Years Ago by james6754: n/a