Question: 1 - Create a Java class for Student with the following requirements: Each student has two attributes: Name and ID . Create two constructors. One
Create a Java class for Student with the following requirements: Each student has two attributes: Name and ID Create two constructors. One constructor without parameters to initialize all the instance variables to default values, and another constructor to initialize all the attributes to specific values. Add all setter and getter methods. Create a tester class with the main method with the following requirements. Create two objects from Student class. Create the first object using the default constructor and the second object must set your name and ID Print your name and ID using getter methods. Sample of the output: Options
Name: Amal Ahmad ID :
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
