Question: Write a Java program where you: Design a class named College Applicant that contains the following data fields, constructor and methods The data fields: A
Write a Java program where you: Design a class named College Applicant that contains the following data fields, constructor and methods The data fields: A private String data member for the applicant's name A private int data member for the year of the applicant was bom A private String data member for the college the applicant is applying to A private, static, int data member number Of Applicant that keeps track the number of CollegeApplicant objective created. The constructor and other methods (8 methods in total): A no-arg constructor that sets applicant's name to "John Doe", birth year to 1996, and the college to "Virginia State University"; increments the value of number Of Applicant data member; and print the date and time the object is created (create a Date object and use to String method). A arg constructor that accepts the applicant's name, birth year, and college as arguments. These values should be assigned to the object's data fields (use "this" key word); increments the value of number Of Applicant data member; and print the date and time the object is created (create a Date object and use toString method). Accessor (getter) and mutator (setter) methods for college member (2 methods). Accessor (getter) methods for name, birth year, and numbcrOfApplicant (3 methods). A method that calculate applicant's age
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
