Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

authorta (for example: author Paul Mills 17) Create a lava dass with the following properties and methods: Date class: The dass hind file names are

image text in transcribed
image text in transcribed
image text in transcribed
authorta (for example: author Paul Mills 17) Create a lava dass with the following properties and methods: Date class: The dass hind file names are both Date Properties: Year e... 2021 Month e.g. 12 Day e.g. 25 - Methods: getYYMmdl) e.g. returns 2021-12-25": hint: return "* + year+"+ month +"+day: accessor and mutator methods (aka getters and setters) e.e. returns 2021, etc. Name class: The dass and file names are both Name. Properties: First e.g. Tiger Last e.g. Woods Methods: getFullNamel) e.g. returns "Tiger Woods" getInitials() e.g. returns T.W." hint:return first.toUrrerCasel).charAt(0)+". accessor and mutator methods (aka getters and setters) e.g. returns 'Tiger'; returns "Woods" Student class: The class and file names are both Student. Properties: Name Student number Date of birth Graduated (a Name object) (String) (a Date object) (a boolean) Accessor and Mutator (aka Getter and Setter) Methods: getName() (returns the entire Name object) getStudentNumbero) getDateOfBirth() (returns the entire Date object) isGraduatedo) Main dass: The class and file names are both Main. Contains the main method, which creates two Student Objects as follows: Name: Tiger Woods Born: December 30, 1975 Student Number: A00123456 Graduated: true And Name: Bill Gates Born: October 28, 1955 Student Number: A00987654 Graduated: false Then print that student's information by calling the appropriate methods so it's in the format of: Tiger Woods (T.W.) (st # A00123456) was born on 1975-12-30. The student has graduated. and Bill Gates (B.G.) (st # A00987654) was born on 1955-10-28. The student has not graduated

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions

Question

6. Be able to choose and prepare a training site.

Answered: 1 week ago