Answered step by step
Verified Expert Solution
Question
1 Approved Answer
this is java thanks Q1. You are required to: a) Write a class Student which contains the following private data members: private String name; private
this is java thanks
Q1. You are required to: a) Write a class Student which contains the following private data members: private String name; private long idNUmber; The class should have a constructor, an overloaded constructor, appropriate getter and setter methods and override the toString method. [15] b) Create a tester class called StudentDriver which includes the following methods: A method which asks the user for the size they wish the array to be and then creates an array of type Student of the specified size. The method has the following header: public static Student[] create() A method which populates the array by asking the used to input a name and ID number for each object stored within the array. The method has the following header: public static void populate(Student[] array) A method which displays the contents of the array, with the following header: public static void display(Student[] array) The tester class should create and populate the array with three student instances and display the contents of the arrayStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started