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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started