Create a package called Adoption Center with the two classes Petinfo.java and PetOwnerInfo.java Petinfo: Create a class called PetInfo.java that has the following: name, age, weight, type as private attributes, a parameterized constructer that sets all the attributes, a gette for name, a setter for age, and a display() method that prints in the following format Milo is a dog who is 4 years old and weighs 10.5 lbs. PetOwnerinfo: Create a class called PetOwnerinfo.java that has the following: name, email, and age as private attributes, a parametrized constructor that sets all the attributes, a getter for name, a setter methods for email, and a display() method that prints in the following format Skippy is 28 years old. Their email is iLoveMilo@gmail.com. Add JavaDoc comments to both classes

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter3: Using Methods, Classes, And Objects
Section: Chapter Questions
Problem 12PE
icon
Related questions
Question
Click to add notes
●
●
Create a package called AdoptionCenter with the two classes Petinfo.java and
PetOwnerInfo.java
Petinfo: Create a class called Petinfo.java that has the following: name, age, weight,
type as private attributes, a parameterized constructer that sets all the attributes, a getter
for name, a setter for age, and a display() method that prints in the following format
Milo is a dog who is 4 years old and weighs 10.5 lbs.
PetOwnerinfo: Create a class called PetOwnerinfo.java that has the following: name,
email, and age as private attributes, a parametrized constructor that sets all the
attributes, a getter for name, a setter methods for email, and a display() method that
prints in the following format
Skippy is 28 years old. Their email is iLoveMilo@gmail.com.
Add JavaDoc comments to both classes
Transcribed Image Text:Click to add notes ● ● Create a package called AdoptionCenter with the two classes Petinfo.java and PetOwnerInfo.java Petinfo: Create a class called Petinfo.java that has the following: name, age, weight, type as private attributes, a parameterized constructer that sets all the attributes, a getter for name, a setter for age, and a display() method that prints in the following format Milo is a dog who is 4 years old and weighs 10.5 lbs. PetOwnerinfo: Create a class called PetOwnerinfo.java that has the following: name, email, and age as private attributes, a parametrized constructor that sets all the attributes, a getter for name, a setter methods for email, and a display() method that prints in the following format Skippy is 28 years old. Their email is iLoveMilo@gmail.com. Add JavaDoc comments to both classes
with Coach
Side Show Side
●
●
●
Timings Slide Show
Task 2
Create a driver class called Adoption Driver.java (NOT part of the package made
earlier). Import the Adoption Center package.
The main method will take in command line arguments and store them in variables (you
will need to parse the strings for some of the arguments)
Your command line will take in 7 arguments together. If the number of arguments is not 7,
print the following:
Invalid number of arguments.
Create a new Petinfo based on the commands passed in. Call display() on this object.
Create a new PetOwnerinfo object based on the commands passed in. Call the display()
on this object.
Add JavaDoc comments to this class.
Transcribed Image Text:with Coach Side Show Side ● ● ● Timings Slide Show Task 2 Create a driver class called Adoption Driver.java (NOT part of the package made earlier). Import the Adoption Center package. The main method will take in command line arguments and store them in variables (you will need to parse the strings for some of the arguments) Your command line will take in 7 arguments together. If the number of arguments is not 7, print the following: Invalid number of arguments. Create a new Petinfo based on the commands passed in. Call display() on this object. Create a new PetOwnerinfo object based on the commands passed in. Call the display() on this object. Add JavaDoc comments to this class.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 1 images

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,