How to redefine a constructor from paren
How to redefine a constructor from parent class
Jul 14, 2014 at 11:17pm UTC
Firstly I don't really know if this is possible.
This is my Class Diagram:
I want to redefine the price object of the Book Class.
However price is defined at Products Class.
I want the price value change according to the marker value, which is a Book attribute.
If the marker is blue, price gets a value of 10 (e.g.), if it has another value, price is equal to 20.
Last edited on
Jul 14, 2014 at 11:33pm UTC
Jul 19, 2014 at 7:38pm UTC
Hoah, take a look at the
Topic archived. No new replies allowed.
General C++ Programming
© cplusplus.com, 2000-2017 - All rights reserved -
Spotted an error? contact us