Computer Science, asked by Srijit1434, 10 months ago

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 Anonymous
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