Question: Draw the UML class diagram for the following given code: public class MyProg { static int i = 5; private Integer j = new Integer(10);

Draw the UML class diagram for the following given code:

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 m1(String str, int n){ for(int k = 0; k < n; k++) System.out.println(str); } public static int getI(){ return MyProg.i; } protected Integer getJ(){ return new Integer(j); } double getK(){ return new Double(k); } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!