question 2 please
VO H . Zuletzt gendert: January 16 hassan moussa HM igen Entwurf Layout Referenzen Sendungen berprfen Ansicht Hilfe Define an abstract base class for an offered article with name Article This class shall have following members a private string attribute with name model storing the article model name two private real valued attributes with names netprice for the net price and taxRate storing the tax value in percent of the article. a public constructor with three parameters to initialise the attributes of an object, the tax rate shall be a default parameter with 19 %. a virtual public destructor producing an output "Article()" at its call and the article model name (see examples below) a public method with name set model assigning a string parameter to the model name attribute a public method with name set.net.Price assigning the double parameter to the net price attribute a public method with name get model without parameters returning the model name as function value a public method with name get netPrice without parameters returning the net price as function value a public method with name get grossPrice without parameters returning the gross price (gross price - net price + tax) as function value. a pure virtual public method with name print without parameter or return value Denne a class with name Accessory derived from abstract class Article This class shall have following members: a private Boolean attribute with name original for an original accessory a public constructor with three parameters for the article name, the net price and whether it is an original accessory with true as default parameter. The tax rate shall be automatically initialised by the default parameter of class constructor Article a virtual public destructor producing an output A s sory " at its call (see examples at the bottom). a virtual public method with name print without parameters writing the article name and (original accessory)". if it is an original one (see examples at the bottom) 2 . main.cpp X #include
#include using namespace std; class Article private string model: double netPrice: double taxRate: public: Article (string a, double b, double c-19) model.assign(a); netPrice=b; textRateci OONMOONNNNNNN virtual --Article ) cout