Question:
How to do a UML diagram for this question?
anonymous
2010-04-22 14:13:08 UTC
This is kind of long so bare with me...

Diesign a class named Account that contains:

An int data field named balance for the account (default 0)
A double data field named balance (default 0)
A double data field named annualInterestRate that scores the current interest rate (default 0)
A Date data field named dateCreated that stores the date when the account was created.
A no-arg constructor that creates a default account
The accessor and mutator methods for id, balance, and annualInterestRate
The accessor method for dateCreated
A method named getMonthlyInterestRate() that returns the monthly interest rate
A method named withdraw that withdraws a specified amount from the account
A method named deposit that deposits a specified amount to the account.

Draw the UML diagram for the class.


My question is how to draw this UML diagram..i have never worked with them before and i need it for class. Please any help would be much appreciated!
Three answers:
Abhinav
2010-04-22 14:18:55 UTC
u need to specify which king of uml diagram u want?
anonymous
2016-06-02 08:36:33 UTC
Class diagrams are a subset of UML diagrams. UML diagrams encompass more than just class diagrams.
Chester B Arthur
2010-04-22 14:18:30 UTC
See Wikipedia.

The page I provide below should get you through all of that.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...