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
Hindi,
5 months ago
English,
5 months ago
Computer Science,
11 months ago
Chemistry,
11 months ago
English,
1 year ago
Environmental Sciences,
1 year ago