In thisdiscussion, you will provide a scenario that requires that you createa class. Explain your scenario and provide the source code for your class and ensure that the class contains the following components:
- at least 2 instance variables
- a constructor that takes as input the two instance variables
- two getter methods to obtain the current value of the instance variables
- two setter methods to update the instance variables.
I will create a class called Student that accepts student's first and last name,below are the code segments for the questions... View the full answer
Sign up to view the full answer
Class contains at least 2 instance variables String name; int id; two getter methods public String... View the full answer