Question
Create People.java Class for a Person with following functionality. People object should have following attributes/fields (make them private) their name as String, their address in
Create People.java Class for a Person with following functionality.
People object should have following attributes/fields (make them private) their name as String, their address in next String and their phone number in 7 digit integer
Put all this information in People object by doing the following Create a default Blank constructor - (Name should be No Name, Address should be "000 Street, 000 City, North Pole, Earth, and Phone number should be 1234567) Create a full constructor Create accessors for all fields Create mutators for all fields (use proper this.) Create toString method for People
cs 141 java
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