Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Working in pairs or groups, design an online store with classes for Store, ItemForSale, Book, Movie, and Author. First, do some research in an online

Working in pairs or groups, design an online store with classes for Store, ItemForSale, Book, Movie, and Author.
First, do some research in an online store like Amazon to see what information they store on books, movies, and authors, and what type of information is the same for all items for sale.
List at least 2 attributes for each class. Which attributes should be in ItemForSale and which in Book, Movie or Author?
What is the relationship between ItemForSale and Book? between ItemForSale and Movie? between Book and Author? between Store and ItemForSale? You may want to draw UML Class Diagrams for these classes on paper or using an online drawing tool like app.diagrams.net or Creately.com (choose UML Class Diagrams, click to connect classes and choose the relationship)
Use the ActiveCode window below to declare each class and specify their relationship to one another with inheritance or association. (Note that usually, each public class would be in a separate file, but since we only have 1 file in Active Code, we only make 1 class public). Only put in the instance variables for each class. We will learn how to make constructors and methods in the next lessons.

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

Step: 3

blur-text-image

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

2. What is the business value of security and control?

Answered: 1 week ago