Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new class, Student.java that contains private data members: number: is a student number; name: is a string of the student's name, such as

Create a new class, Student.java that contains private data members:

number: is a student number;

name: is a string of the student's name, such as "Alice Wonderland";

dob: is the date of birth;

email: contains the email of the student;

address: the address of the student;

phone: contact phone number;

degree: degree of the student, such as "Bachelor of CS", "Master of IT";

In the file Student.java include:

Initialization constructor that assigns values to all data members;

Public access methods getNumber(), getName(), getDOB(), getEmail(), getAddress(), getPhone() and getDegree() that return values of private data members; Public update methods setNumber(int newNumber), setName(String newName), setDOB(String newDOB), setEmail(String newEmail), setAddress(String newAddress), setPhone(String newPhone) and setDegree(String newDegree) that update values of private data members;

Public overriding method toString() that returns of student information.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

import javautilDate public class Student private int number private String name private Date dob pri... 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

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Operating System questions

Question

differentiate the function ( x + 1 ) / ( x ^ 3 + x - 6 )

Answered: 1 week ago

Question

2. What do you think are your dominant personality preferences?

Answered: 1 week ago

Question

1. What does self-awareness mean to you?

Answered: 1 week ago