Question: assuming question 3 is DONE. only question 4( polymorphism) The answer to question 3 is as following in the pictures below question 4 ( last

assuming question 3 is DONE. only question 4( polymorphism)  assuming question 3 is DONE. only question 4( polymorphism) The answer
to question 3 is as following in the pictures below question 4
The answer to question 3 is as following in the pictures below
question 4 ( last photo ) ( polymorphism) is using question 3 that i have already done, which is why i attached q3 ( last photo ) ( polymorphism) is using question 3 that i
have already done, which is why i attached q3 Question 3: Inheritance
Consider the following Art class Pain .() or Statues () oil ,

Question 3: Inheritance Consider the following Art class Pain .() or Statues () oil , ink , or acryl) type (29 points) ng Art class, which represents an art item ( J). Art items could be Painti ). Paintings are art items with addition features like width and height, and col k, or acrylic). Statues are art items also that have features like weight, and material er, or clay). The price of the painting is based on the size (width* height) and the year dial sales(gold, silver, or clay). The of production Class Art E l string title; // float price; // Lebile int year; // U publie: Art(string n, float p, int y): void set Year(); void setTitle : int getYear(); string getTitle(); virtual string GetType()-0; // "Painting" or "Statue" virtual float getPrice( ) 0; virtual void print InfoOf cout200 99 stez-250) Pt 300; else if (size 2250) P+= 300:1 Page 5 of 9 else pt = 0; if I get Vear 1) 200 99 stez-250) Pt 300; else if (size 2250) P+= 300:1 Page 5 of 9 else pt = 0; if I get Vear 1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!