Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions