Question: In c++ , only header file .h and main. Use virtual destructors, use operators, use virtual functions members, use of Abstract class. Create a class

In c++ , only header file .h and main. Use virtual destructors, use operators, use virtual functions members, use of Abstract class.

Create a class named JewelryBox. Create a class named PlainBox. Create a class named BoxInterface.

class JewerlyBox inherits from PlainBox which in turn inherits from BoxInterface

Integrate this inside:

a) Create a class named Jewelry with the following attributes

i. Gender: If the jewelry is for women, men or children

ii. Jewelry Type: If it is ring. Necklace, chains, bracelet, earrings

iii. Gold Metal Weight: 24k, 14k, 18k or 24k

iv. Price: Price of the garment

v. Metal: Type of metal, white gold, yellow, silver ... etc

b) Create a class named Watches with the following attributes

i. Gender Watch: Whether the watch is female, male or child

ii. Watch Brands: Casio, Bulova, Citizen, Rolex, Invicta

iii. Price: Price of the watch

c. Create an instance of type JewelryBox and another of type JewelryBox using pointers. Ask for user data and print your content.

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!