Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

President class The President class describes information of a president of a club. It has following attributes: Attribute Attribute name Description type firstName String The

image text in transcribed
image text in transcribed
President class The President class describes information of a president of a club. It has following attributes: Attribute Attribute name Description type firstName String The first name of the president lastName String The last name of the president The academic level of the president such as senior, junior, etc. academicLevel String The following constructor should be provided to initialize each attribute. This constructor initializes the value of string attributes to "?". public President ( ) The following accessor methods should be provided to get the attributes: public String getFirstName () public String getLastName () public String getAcademicLevel () The following modifier(mutator) methods should be provided to set the attributes: public void setFirstName (String someFirstName) public void setLastName (String someLastName) public void setAcademicLevel (String someLevel) CJLLUJI (JDI Download CSE205AssignmentsDescription.html (3.2 KB) ments firstName String The first name of the president lastName String The last name of the president be The academic level of the president such as senior, junior, etc. lacademicLevel String The following constructor should be provided to initialize each attribute. This constructor initializes the value of string attributes to "?". public President () The following accessor methods should be provided to get the attributes: public String getFirstName () public String getLastName () public String getAcademicLevel () The following modifier(mutator) methods should be provided to set the attributes: public void setFirstName (String some FirstName) public void setLastName (String someLastName) public void setAcademiclevel (String someLevel) The following method must be defined: public String tostring 0 toString method should return a string of the following format: Water, Bob (Senior) where "Water' is the last name of a president, "Bob" is the first name, and "Senior" is the academic level. So you need to insert ," or parentheses between these variables. Note that you can choose a meaningful parameter variable name for each method. MacBook Pro

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analytics And Quality Management Fundamental Tools

Authors: Joseph Nguyen

1st Edition

B0CNGG3Y2W, 979-8862833232

More Books

Students also viewed these Databases questions

Question

Can an object exert a force on itself? Argue for your answer.

Answered: 1 week ago

Question

Show the properties and structure of allotropes of carbon.

Answered: 1 week ago

Question

e. What difficulties did they encounter?

Answered: 1 week ago