Please do in java Design,implement and test a Student class. A Student object has a name and phoneNumber, both stored as

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please do in java Design,implement and test a Student class. A Student object has a name and phoneNumber, both stored as

Post by answerhappygod »

Please do in java
Design,implement and test a Student class. A Student object has
a name and phoneNumber, both stored as String types. These must be
declared private, they are instance variables.
A Student object can return the value of each of its
attributes(accessor) and change the value of each of its
attributes(mutator) it can also display itself in the form:
Sheelagh (Phone: 5550000)
you are required to write two separate methods named isNumeric()
and isBlankOrEmpty() these will handle string validation. Phone
number must be 7 or 10 digits in length, if phone number is 10
digits the first character must be 0
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply