The system stores information about two things: bicycles and owners. A bicycle has attributes for make, model, and year. The owner has attributes for name and address. Assume that a bicycle must be owned by one owner and an owner can own many bicycles. Draw an entity-relationship diagram and a class diagram (Generalization/Specialization Inheritance) for the bicycles and owners, but include subclasses for cruiser bicycle, racing bicycle, and mountain bike with appropriate attributes.
Please find the diagram below where I have shown ER diagram and class diagram. In class diagram cruiser bicycle, racing bicycle, and mountain bike are the sub classes.
Get Answers For Free
Most questions answered within 1 hours.