Java: Creating a Class
Make a Student class with the following data fields: name (String), age (int), isEngineeringMajor (boolean), and gender (char). The class must have a “get” method for each field (e.g. getAge(), getName() ) and a “set” method for each field (e.g. setAge(), setName() ). Provide two constructors (one with four arguments and a default constructor with no args). Note: the data fields must all be private. Create two students in the main() method, one using each constructor and display their output values.
Save your time - order a paper!
Get your paper written from scratch within the tight deadline. Our service is a reliable solution to all your troubles. Place an order on any task and we will take care of it. You won’t have to worry about the quality and deadlines
Order Paper Now