With uml you have the name of class at the top, the attributes and the methods
with the attributes
- is private, + public # protected
- name: string
string will be type
For the methods the same for attributes
you will have + for public, the name of the method, then any parameters to be passed in (String n) then the return type : void.
+name(String n):void
Code:
public void name(String n){
}
Hope tha