Question: using c++ Question 3: Inheritance (29 points) Consider the following Art class, which represents an art item (iba). Art items could be Paintings (5) or
using c++


Question 3: Inheritance (29 points) Consider the following Art class, which represents an art item (iba). Art items could be Paintings (5) or Statues (w). Paintings are art items with addition features like width and height, and color type DJIEN (oil, ink, or acrylic). Statues are art items also, that have features like weight, and material Sellisgold, silver, or clay). The price of the painting is based on the size (width* height) and the year of production Class Anil " :shiny titles lear prices " ;int pewr year public: Art(string n, flani p, in p); void ser Year: void serTitle(): int gerYear): string Title: virmal string GetType)-0; // "Painting" or "Statue virmal float getPrice()-1; virtual weid printinfof cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
