Need Help ?

Home / Expert Answers / Other / draw-a-uml-class-diagram-with-visibility-for-the-program-belowjava-public-class-myprog-static-int-i-

(Answered): Draw a UML Class Diagram with Visibility for the program belowJAVA public class MyProg { static int ...



Draw a UML Class Diagram with Visibility for the program belowJAVA

public class MyProg { static int i = 5; private Integer j new Integer (10); protected double k = 2.5; public MyProg() { } pubVisibility Notation private package 2 protected # public +

public class MyProg { static int i = 5; private Integer j new Integer (10); protected double k = 2.5; public MyProg() { } public static void main(String[] args) { MyProg mp = new MyProg(); } void m1() { System.out.println("Hello World!"); } void ml (String str, int n) { for(int k = 0; k < n; k++) System.out.println(str); } public static int getr() { return MyProg.i; } protected Integer gets() { return new Integer (j); } double getk() { return new Double(k); } } Visibility Notation private package 2 protected # public +


We have an Answer from Expert

View Expert Answer

Expert Answer


Answer to Draw a UML Class Diagram with Visibility for the program below JAVA ...
We have an Answer from Expert

Buy This Answer $4

Place Order