Hello guys, I've started learning C++ a few days ago.
I read about the language and the OOD. I'm trying implement this "conceptual exercise":
This is my classDiagram:
https://dl.dropboxusercontent.com/u/...0diagramV3.png
Currently I have a problem. I don't know how can I use constructors with conditionals. And, on the other hand how to create the methods (set /get) the variables at this case.
I want the price of a book has different values according to the string "marker". For instance, if the "marker" has the value "blue", the book price is 20.
My code can be downloaded from
github:
https://github.com/CreativeSoftware/DiamondQt