Published using Google Docs
OMIT - OOP 6 - UML and Inheritance
Updated automatically every 5 minutes

UML and Inheritance

OOP Assignment 6

UML Diagrams are used for 2 reasons:

We will be focusing on one type of UML called the UML Class Diagram.

Watch this 3 minute video.  It seems to be a bit unprofessional, at first, but is actually a VERY effective description of UML Class diagrams: https://www.youtube.com/watch?v=Vy_gLkxuCnw 

In this assignment, you will using a UML Diagram to PLAN a simple banking program.  The example used here will be very similar but not identical to the one you have coded in class.

Learning goals:

Part 1: Introduction (40%)

Read this very short introduction to inheritance: What is inheritance?

You can do this in Lucid Chart or just a regular Google Doc.  Regardless, create the new document called BankAccount UML and share it with your teacher.  Need help with Lucid Charts?  See the last page for screenshots.

Create a title called Inheritance and UML

Define inheritance as it relates to OOP.  If you copy and paste a definition, add a link to the source.  

In a few sentences written in your own words, explain how it could relate to one of the following:

Part 2: Superclass UML (30%)

Consider the following BankAccount superclass:

Create a UML Diagram for this BankAccount class.  Your diagram must include the following.  Below the list is an example of the style you should use:

Simple Example of the Style

Clients

+ name:String

+ age: int

-matched: boolean

+ goodMatch(int a,String ): boolean

+ printInfo(): void

Part 3: SubClasses UML (30%)

There are no right or wrong answers for this part.  Your goal is to show me you have a basic understanding of inheritance by thinking about how it might work.  You will NOT need to code subclasses for now so do not worry about how complex they might be.

There are many types of possible child classes of the BankAccount class:

Your goal is to choose 2 of these sub accounts and add a UML class Diagrams for each.  The requirements for this assignment are to:

They should be set up as follows:

Class Name (extends BankAccount)

New variables only

Methods who are new OR need to be customized for this class

Want to use Lucid Chart?

In Google Drive… New… Lucid Chart… select UML (see image)... Blank UML

To add text

To make a UML , drag in the UML Class Diagram icon into the screen