Question: Given the following code, draw its UML Class diagram public class public class Q1 { private int i; protected double j; public boolean isTrue; public
Given the following code, draw its UML Class diagram public class
public class Q1 {
private int i;
protected double j;
public boolean isTrue;
public String name;
public int getI() {
return i;
}
public void setI(int i) {
this.i = i;
}
public double getJ() {
return j;
}
public void setJ(double j) {
this.j = j;
}
public boolean isTrue() {
return isTrue;
}
public void setTrue(boolean isTrue) {
this.isTrue = isTrue;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
