Question: language java Question 3 a) Explain the purpose of constructor. b) Construct UML class diagram for Author class. C) Write test program to public class


language java
Question 3 a) Explain the purpose of constructor. b) Construct UML class diagram for Author class. C) Write test program to public class Author { private String name; private String email; private char gender; public Author(String name, String email, char gender) { this.name = name; this.email = email; this.gender = gender, } public String getName() { return name; } public String getEmail() { return email: } public char getGender() { return gender; } public void setEmail(String email) { this.email = email: } public String toString() { return name + " (" + gender + ") at " + email: }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
