Question: Question 1 (20 Points) Create a NetBeans project called Question 1. Then create a public class inside questionl package called Author according to the following

 Question 1 (20 Points) Create a NetBeans project called "Question 1".

Question 1 (20 Points) Create a NetBeans project called "Question 1". Then create a public class inside questionl package called Author according to the following information (Make sure to check the UML diagram) Author -name:String -email:String -gender:char +Author(name:String, email:String, gender:char) +getName():String +getEmail):String +setEmail (email:String):void +getGender():char +tostring ):String . 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 . Getters and setters: get Name ), getEmail0 and getGender ). There are no setters for name and gender because these attributes cannot be changed. Now in your main method, create the following object from your class to test the Author constructor and call the public methods of the Author class. Override the toString ) to display name, age and gender of the author and show that it works in your test case. Test case

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!