Please draw the UML for this code package lap; import java.util.Date; class Covenant { private String name; private String type; private Date dateCreated; private String employeeName; private int employeeID; public Covenant(String name, String type, Date dateCreated, String employeeName, int employeeID) { this.name = name; this.type = type; this.dateCreated = dateCreated; this.employeeName = employeeName; this.employeeID = employeeID; } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setType(String type) { this.type = type; } public String getType() { return type; } public void setDateCreated(Date dateCreated) { this.dateCreated = dateCreated; } public Date getDateCreated() { return dateCreated; } public void setEmployeeName(String employeeName) { this.employeeName = employeeName; } public String getEmployeeName() { return employeeName; } public void setEmployeeID(int employeeID) { this.employeeID = employeeID; } public int getEmployeeID() { return employeeID; } } public class fullName_group { public static void main(String[] args) { Covenant covenant1 = new Covenant("Covenant 1", "Type 1", new Date(), "Employee 1", 1); Covenant covenant2 = new Covenant("Covenant 2", "Type 2", new Date(), "Employee 2", 2); Covenant covenant3 = new Covenant("Covenant 3", "Type 3", new Date(), "Employee 3", 3); Covenant covenant4 = new Covenant("Covenant 4", "Type 4", new Date(), "Employee 4", 4); Covenant covenant5 = new Covenant("Covenant 5", "Type 5", new Date(), "Employee 5", 5); }
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
Please draw the UML
for this code
package lap;
import java.util.Date;
class Covenant {
private String name;
private String type;
private Date dateCreated;
private String employeeName;
private int employeeID;
public Covenant(String name, String type, Date dateCreated, String employeeName, int employeeID) {
this.name = name;
this.type = type;
this.dateCreated = dateCreated;
this.employeeName = employeeName;
this.employeeID = employeeID;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setType(String type) {
this.type = type;
}
public String getType() {
return type;
}
public void setDateCreated(Date dateCreated) {
this.dateCreated = dateCreated;
}
public Date getDateCreated() {
return dateCreated;
}
public void setEmployeeName(String employeeName) {
this.employeeName = employeeName;
}
public String getEmployeeName() {
return employeeName;
}
public void setEmployeeID(int employeeID) {
this.employeeID = employeeID;
}
public int getEmployeeID() {
return employeeID;
}
}
public class fullName_group {
public static void main(String[] args) {
Covenant covenant1 = new Covenant("Covenant 1", "Type 1", new Date(), "Employee 1", 1);
Covenant covenant2 = new Covenant("Covenant 2", "Type 2", new Date(), "Employee 2", 2);
Covenant covenant3 = new Covenant("Covenant 3", "Type 3", new Date(), "Employee 3", 3);
Covenant covenant4 = new Covenant("Covenant 4", "Type 4", new Date(), "Employee 4", 4);
Covenant covenant5 = new Covenant("Covenant 5", "Type 5", new Date(), "Employee 5", 5);
}
}
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)