Question: Please i need the output as soon 3) What is the output of the following program: (15) public class Author private String name; private String
3) What is the output of the following program: (15) public class Author private String name; private String email private char genders m or r public Author(String name, String emait, char gender) this.name = name ; this.email = email; this.gender gender: public String getName) public char getGender) public String getEmail() t return name return gender: return email; public void setEmail(String emai) ( this.email email; // The tostring() describes itself public String toString) return name+ "(+ gender + ") at "+ email; co public class Book private String name; private Author author; private double price; private int qty: public Book(String name, Author author, double price, int qty) this.name = name; this. author = author; this. price = price; this.qty = qty
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
