Question: Write a class called Person. A person has a name and a social number. Assume that a class Name exists with first name and last
Write a class called Person. A person has a name and a social number. Assume that a class Name exists with first name and last name. Design the class Person such that it accepts a Name object and a social security number. Provide accessor methods to return the Name object and also the social security number.
Write a class called Registration that accepts two values - a Person object, and an array called courses [ ] - representing strings of course titles. No student is allowed to register for more than five (5) at any one time. Write a method that determines if a student has registered for too many courses. You are responsible for providing the requisite variables, and any other methods deemed necessary.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
