Ccreate a class called author is designed as follows: it contains: three private instance variables: name (string), email (string), and gender (char of either m' or f'). One constructor to initialize the name, email and gender with the given values
Answers
Answered by
1
Answer:
*Author.java**/
public class Author
{
protected String name;
protected String email;
protected char gender;
//Constructor
public Author(String name, String email, char gender)
{
this.name =...
Similar questions
English,
5 months ago
Math,
5 months ago
Math,
5 months ago
Computer Science,
10 months ago
Chemistry,
10 months ago
English,
1 year ago
Environmental Sciences,
1 year ago