SlideShare a Scribd company logo
Suggestion:
Use Netbeans to copy your last lab (Lab 07) to a new project called Lab08.
Close Lab07.
Work on the new Lab08 project then.
The Student class
A Student is a Person with 3 extra attributes, major, academic year and gpa.
Attributes
String major
String academicYear
double GPA
Constructorsone constructor with no input parameterssince it doesn't have input parameters, use
the default data below
major - IST
academicYear - Sr.
GPA - 3.0
remember to call the constructor of the superclass with no parameters
one constructor with all the parameters
all three parameters from Student, one for each attribute
since this is a subclass, remember to include also the parameters for the superclass
Methods
Get and Set methods (a requirement from encapsulation)
public String toString()
returns this object as a String, i.e., make each attribute a String, concatenate all strings and return
as one String.
toString() is a special method, you will learn more about it in the next lessons
it needs to be public
it needs to have @override notation (on the line above the method itself). Netbeans will suggest
you do it.
important : in the subclass toString, remember to make a call to the superclass toString so that
the resulting String includes
data from the subclass Student
data from the superclass Person
The Person Class
Attributes
String firstName
String lastName
String hometown
String state
Height height
Constructorsone constructor with no input parameterssince it doesn't receive any input values,
you need to use the default values below:
firstName - No
lastName - Name
hometown - N/A
state - N/A
height - use the Height class no parameter constructor
one constructor with three parameters
firstName using the input parameter
lastName using the input parameter
height using the input parameter
use the default values for
hometown - N/A
state - N/A
one constructor with all (five) parameters
one input parameter for each attribute
Methods
Get and Set methods (a requirement from encapsulation)
important:
You should start generating the default get and set methods using NetBeans automatic generator
Then you will change getFirstName and setLastName as specified. getFirstName
returns firstName with the first letter in upper case and the remaining of the String in lower case
getLastName
getHometown
getState
getHeight
setFirstName
setLastName
updates lastName to be all caps (all upper case)
remember to use setLastName in all constructors so the data (the updated lastName) is stored
correctly
setHometown
setState
setHeight
public String toString()
returns this object as a String, i.e., make each attribute a String, concatenate all strings and return
as one String.
toString() is a special method, you will learn more about it in the next lessons
it needs to be public
it needs to have @override notation (on the line above the method itself). Netbeans will suggest
you do it.
regarding state , the toString method will have a similar functionality as App had in the first lab.
if the state attribute is "PA", display the object's attribute name plus the message "is from
Pennsylvania"
if the state attribute is not "PA", display the object's attribute name plus the message "is from
out-of-state"
In short, the toString() method returns all the data from each object as a String
public void initials ( )this method
gets firstName and lastName
extract the initials of each one of them
adds a "." period to each of them
and uses "System.out.println" to display them as one String
public void initials ( int option)
this method overloads public void initials( ) . This means, it has the same name, but a different
number of parameters.
if the value of "option" is 1 gets firstName
extract its initials
adds a "." period to to a String
adds the lastName to this String
and uses "System.out.println" to display the String
if the value of "option" is 2
adds firsName to a String
gets lastName
extract its initials
adds a "." period to it
adds it to the String
and uses "System.out.println" to display the String
The Height class
uses encapsulation
private attributes
get and set methods for each attribute
Attributes
int feet
int inches
Constructorsone constructor with no input parameterssince it doesn't receive any input values,
you need to use the default values below:
feet - 5
feet - 6
one constructor with two parameters
feet using the input parameter
inches using the input parameter
Methodspublic String toString()
returns this object as a String, i.e., make each attribute a String, concatenate all strings and return
as one String.
toString() is a special method, you will learn more about it in the next lessons
it needs to be public
it needs to have @override notation (on the line above the method itself). Netbeans will suggest
you do it.
The Player Class ( now an abstract class )
Player is a Student with some extra attributes
Uses encapsulation
Player now is an abstract class because it has an abstract methodpublic abstract double
getRatings( );
an abstract method is an incomplete method that has to be implemented by the subclasses.
Attributes
private int number
private String sports
private gamesPlayed
Constructorsone constructor with no input parameterssince it doesn't receive any input values,
you need to use the default values below:
number - 0
sports - "none"
gamesPlayed - 0
one constructor with all parameters
one input parameter for each attribute
Methods
public String toString()
returns this object as a String, i.e., make each attribute a String, concatenate all strings and return
as one String.
toString() is a special method, you will learn more about it in the next lessons
it needs to be public
it needs to have @override notation (on the line above the method itself). Netbeans will suggest
you do it.
Get and Set methods
public int getNumber()
public void setNumber(int number)
public String getSports()
public void setSports(String sports)
public int getGamesPlayed()
public void setGamesPlayed(int gamesPlayed)
public abstract getRatings();
The SoccerPlayer Class
SoccerPlayer is a Player with some extra attributes
Uses encapsulation
SoccerPlayer will implement the method getRatings (an abstract method from the superclass
Player)
toString has to include the result of getRatings() too
Attributes
private int goals
private int yellowCards
Constructorsone constructor with no input parameterssince it doesn't receive any input values,
you need to use the default values below:
goals - 0
yellowCards - 0
one constructor with all (two) parameters
one input parameter for each attribute
Methods
public String toString()
returns this object as a String, i.e., make each attribute a String, concatenate all strings and return
as one String.
toString() is a special method, you will learn more about it in the next lessons
it needs to be public
it needs to have @override notation (on the line above the method itself). Netbeans will suggest
you do it.
should also include the value of getRatings() in the string
Get and Set methods
public int getGoals()
public void setGoals(int goals)
public int getYellowCards()
public void setYellowCards(int yellowCards)
public double getRatings()calculate and return the ratings using this formula:(double) (goals -
yellowCards)/gamesPlayed
the (double) is called casting, forcing the expression that comes afterwards to become a double.
it is necessary to avoid getting 0 as a result because of the precision loss in the division by
integers
if goals or gamesPlayed is 0, return 0 (you need to do this test to avoid the application crashing
in case one of them is 0)
The FootballPlayer Class
FootballPlayer is a Player with some extra attributes
Uses encapsulation
FootballPlayer will implement the method getRatings (an abstract method from the superclass
Player)
toString has to include the result of getRatings() too
Attributes
private int yards
private int minutesPlayed
Constructorsone constructor with no input parameterssince it doesn't receive any input values,
you need to use the default values below:
yards - 0
minutesPlayed - 0
one constructor with all (two) parameters
one input parameter for each attribute
Methods
public String toString()
returns this object as a String, i.e., make each attribute a String, concatenate all strings and return
as one String.
toString() is a special method, you will learn more about it in the next lessons
it needs to be public
it needs to have @override notation (on the line above the method itself). Netbeans will suggest
you do it.
should also include the value of getRatings() in the string
Get and Set methods
public int getYards()
public void getYards(int yards)
public int getMinutesPlayed()
public void setMinutesPlayed(int minutesPlayed)
public double getRatings()calculate and return the ratings using this formula:(double) ( (yards -
minutesPlayed/10.0) ) /gamesPlayed
be careful with the parenthesis to avoid getting 0 as a result
the (double) is called casting, forcing the expression that comes afterward to become a double.
it is necessary to avoid getting 0 as a result because of the precision loss in the division by
integers
use 10.0 instead of 10 to force Java to use more precision in the calculation
if yards or gamesPlayed is 0, return 0 (you need to do this test to avoid the application crashing
in case one of them is 0)
The App class
create a SoccerPlayer object called sp0 using the no-parameter constructor
create a SoccerPlayer object called sp1 using the all-parameter constructor with the values
goals - 5
yellowCards - 2
number - 7
sports - Soccer
gamesPlayed - 10
major - Cyber
academicYear - Sr.
GPA - 3.5
firstName - jillian (see the different capitalization used to test the get/set methods)
lastName - Jennings
height 5 7
hometown - Montclair
state - NJ
create a FootballPlayer object called fp0 using the no-parameter
create a FootballPlayer object called fp1 using the all-parameter constructor with the values
yards - 60
minutesPlayed -30
number - 26
sports - Football
gamesPlayed - 10
major - IST
academicYear - Jr.
GPA - 3.5
firstName - KEATON (see the different capitalization used to test the get/set methods)
lastName - Ellis
height 5 11
hometown - State College
state - PA
display all the data from each object
Output
Important
you need to display each class toString( ) in a separate line.
You can do this by adding a "n" at the end of the string.
In the last toString you will also add a
"==============================================================" String
to close the line.
I am request code for each section of the assignment please.
Person { firstName=No, lastName=NAME, hometown=N/A, state=N/A, height=Height { feet =
5 , inches = 6 }} Student { major = I ST , academicYear = S r , GP A = 3.0 } Player { number =
0 , sports=none, gamesplayed = 0 } SoccerPlayer { goals = 0 , yellowCards = 0 , ratings = 0.0 }
Person { firstName=Jillian, lastName=JENNINGS, hometown=Montclair, state=out-of-state,
height=Height { feet=5, inches=7 }} Student { major = Cyber, academicYear = Sr , GPA = 3.5 }
Player { number = 7 , sports=Soccer, gamesPlayed = 10 } Soccerplayer { goals = 5 ,
yellowCards = 2 , ratings = 0.3 } Person { firstName=No, lastName=NAME, hometown=N/A,
state=N/A, height = Height { f feet = 5 , inches = 6 }} Student { major = I ST , academicYear =
Sr , GPA = 3.0 } Player { number = 0 , sports=none, gamesPlayed = 0 } FootballPlayer { yards =
0 , minutes 1 layed = 0 , ratings = 0.0 } Person { firstName=Keaton, lastName=ELLIS,
hometown=State College, state=Pennsylvania, height=Height { feet = 5 , inches=11 }} Student {
major = I ST , academicYear = J r . , GPA = 3.5 } Player { number = 26 , sports = Football,
gamesPlayed = 10 } Footballplayer { y ards = 60 , minutesplayed = 30 , ratings = 5.7 }

More Related Content

Similar to Suggestion- Use Netbeans to copy your last lab (Lab 07) to a new proje.pdf

Goals1)Be able to work with individual bits in java.2).docx
Goals1)Be able to work with individual bits in java.2).docxGoals1)Be able to work with individual bits in java.2).docx
Goals1)Be able to work with individual bits in java.2).docx
josephineboon366
 
basic concepts
basic conceptsbasic concepts
basic concepts
Jetti Chowdary
 
Astronomical data analysis by python.pdf
Astronomical data analysis by python.pdfAstronomical data analysis by python.pdf
Astronomical data analysis by python.pdf
ZainRahim3
 
Refactoring
RefactoringRefactoring
Refactoring
nkaluva
 
Sharable_Java_Python.pdf
Sharable_Java_Python.pdfSharable_Java_Python.pdf
Sharable_Java_Python.pdf
ICADCMLTPC
 
08 class and object
08   class and object08   class and object
08 class and object
dhrubo kayal
 
Charcater and Strings.ppt Charcater and Strings.ppt
Charcater and Strings.ppt Charcater and Strings.pptCharcater and Strings.ppt Charcater and Strings.ppt
Charcater and Strings.ppt Charcater and Strings.ppt
mulualem37
 
Parameters
ParametersParameters
Parameters
James Brotsos
 
do it in eclips and make sure it compile Goals1)Be able to.docx
do it in eclips and make sure it compile Goals1)Be able to.docxdo it in eclips and make sure it compile Goals1)Be able to.docx
do it in eclips and make sure it compile Goals1)Be able to.docx
jameywaughj
 
Ecs 10 programming assignment 4 loopapalooza
Ecs 10 programming assignment 4   loopapaloozaEcs 10 programming assignment 4   loopapalooza
Ecs 10 programming assignment 4 loopapalooza
JenniferBall44
 
I really need some help if I have this right so far. PLEASE CHANG.pdf
I really need some help if I have this right so far. PLEASE CHANG.pdfI really need some help if I have this right so far. PLEASE CHANG.pdf
I really need some help if I have this right so far. PLEASE CHANG.pdf
aggarwalshoppe14
 
CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1
HamesKellor
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptx
Abhishek Tirkey
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptx
GauravPandey43518
 
SeriesTester.classpathSeriesTester.project SeriesT.docx
SeriesTester.classpathSeriesTester.project  SeriesT.docxSeriesTester.classpathSeriesTester.project  SeriesT.docx
SeriesTester.classpathSeriesTester.project SeriesT.docx
lesleyryder69361
 
131 Lab slides (all in one)
131 Lab slides (all in one)131 Lab slides (all in one)
131 Lab slides (all in one)
Tak Lee
 
I really need some help if I have this right so far. Please Resub.pdf
I really need some help if I have this right so far. Please Resub.pdfI really need some help if I have this right so far. Please Resub.pdf
I really need some help if I have this right so far. Please Resub.pdf
aggarwalshoppe14
 
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Udayan Khattry
 
Integration Project Inspection 3
Integration Project Inspection 3Integration Project Inspection 3
Integration Project Inspection 3
Dillon Lee
 
Exercise1[5points]Create the following classe
Exercise1[5points]Create the following classeExercise1[5points]Create the following classe
Exercise1[5points]Create the following classe
mecklenburgstrelitzh
 

Similar to Suggestion- Use Netbeans to copy your last lab (Lab 07) to a new proje.pdf (20)

Goals1)Be able to work with individual bits in java.2).docx
Goals1)Be able to work with individual bits in java.2).docxGoals1)Be able to work with individual bits in java.2).docx
Goals1)Be able to work with individual bits in java.2).docx
 
basic concepts
basic conceptsbasic concepts
basic concepts
 
Astronomical data analysis by python.pdf
Astronomical data analysis by python.pdfAstronomical data analysis by python.pdf
Astronomical data analysis by python.pdf
 
Refactoring
RefactoringRefactoring
Refactoring
 
Sharable_Java_Python.pdf
Sharable_Java_Python.pdfSharable_Java_Python.pdf
Sharable_Java_Python.pdf
 
08 class and object
08   class and object08   class and object
08 class and object
 
Charcater and Strings.ppt Charcater and Strings.ppt
Charcater and Strings.ppt Charcater and Strings.pptCharcater and Strings.ppt Charcater and Strings.ppt
Charcater and Strings.ppt Charcater and Strings.ppt
 
Parameters
ParametersParameters
Parameters
 
do it in eclips and make sure it compile Goals1)Be able to.docx
do it in eclips and make sure it compile Goals1)Be able to.docxdo it in eclips and make sure it compile Goals1)Be able to.docx
do it in eclips and make sure it compile Goals1)Be able to.docx
 
Ecs 10 programming assignment 4 loopapalooza
Ecs 10 programming assignment 4   loopapaloozaEcs 10 programming assignment 4   loopapalooza
Ecs 10 programming assignment 4 loopapalooza
 
I really need some help if I have this right so far. PLEASE CHANG.pdf
I really need some help if I have this right so far. PLEASE CHANG.pdfI really need some help if I have this right so far. PLEASE CHANG.pdf
I really need some help if I have this right so far. PLEASE CHANG.pdf
 
CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1CMSC 350 HOMEWORK 1
CMSC 350 HOMEWORK 1
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptx
 
C++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptxC++ STL (quickest way to learn, even for absolute beginners).pptx
C++ STL (quickest way to learn, even for absolute beginners).pptx
 
SeriesTester.classpathSeriesTester.project SeriesT.docx
SeriesTester.classpathSeriesTester.project  SeriesT.docxSeriesTester.classpathSeriesTester.project  SeriesT.docx
SeriesTester.classpathSeriesTester.project SeriesT.docx
 
131 Lab slides (all in one)
131 Lab slides (all in one)131 Lab slides (all in one)
131 Lab slides (all in one)
 
I really need some help if I have this right so far. Please Resub.pdf
I really need some help if I have this right so far. Please Resub.pdfI really need some help if I have this right so far. Please Resub.pdf
I really need some help if I have this right so far. Please Resub.pdf
 
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
Oracle Certified Associate (OCA) Java SE 8 Programmer II (1Z0-809) - Practice...
 
Integration Project Inspection 3
Integration Project Inspection 3Integration Project Inspection 3
Integration Project Inspection 3
 
Exercise1[5points]Create the following classe
Exercise1[5points]Create the following classeExercise1[5points]Create the following classe
Exercise1[5points]Create the following classe
 

More from ssuser58be4b1

Summarize your findings from the Activity- Communications Skills Neces.pdf
Summarize your findings from the Activity- Communications Skills Neces.pdfSummarize your findings from the Activity- Communications Skills Neces.pdf
Summarize your findings from the Activity- Communications Skills Neces.pdf
ssuser58be4b1
 
Summarize LinkedIn's diversity practices and the impact on the company.pdf
Summarize LinkedIn's diversity practices and the impact on the company.pdfSummarize LinkedIn's diversity practices and the impact on the company.pdf
Summarize LinkedIn's diversity practices and the impact on the company.pdf
ssuser58be4b1
 
Sue Helins Applanoes wants to establish an essembly line to manulactur.pdf
Sue Helins Applanoes wants to establish an essembly line to manulactur.pdfSue Helins Applanoes wants to establish an essembly line to manulactur.pdf
Sue Helins Applanoes wants to establish an essembly line to manulactur.pdf
ssuser58be4b1
 
Subsurface Microbial Communities You have discovered a new anaerobic m.pdf
Subsurface Microbial Communities You have discovered a new anaerobic m.pdfSubsurface Microbial Communities You have discovered a new anaerobic m.pdf
Subsurface Microbial Communities You have discovered a new anaerobic m.pdf
ssuser58be4b1
 
Subsidiary roles specify the positions of particular units in relation.pdf
Subsidiary roles specify the positions of particular units in relation.pdfSubsidiary roles specify the positions of particular units in relation.pdf
Subsidiary roles specify the positions of particular units in relation.pdf
ssuser58be4b1
 
Sue likes candy and she had been very good about not eating any for a.pdf
Sue likes candy and she had been very good about not eating any for a.pdfSue likes candy and she had been very good about not eating any for a.pdf
Sue likes candy and she had been very good about not eating any for a.pdf
ssuser58be4b1
 
Subject- Probability analysis in civil engineering Problem 2- A slop.pdf
Subject- Probability analysis in civil engineering   Problem 2- A slop.pdfSubject- Probability analysis in civil engineering   Problem 2- A slop.pdf
Subject- Probability analysis in civil engineering Problem 2- A slop.pdf
ssuser58be4b1
 
Subjective- A 19-year-old female was brought to the trauma ED followin.pdf
Subjective- A 19-year-old female was brought to the trauma ED followin.pdfSubjective- A 19-year-old female was brought to the trauma ED followin.pdf
Subjective- A 19-year-old female was brought to the trauma ED followin.pdf
ssuser58be4b1
 
Submitting an oxternal tool Available after Feb 21 at 17pm 3 - Ponse o.pdf
Submitting an oxternal tool Available after Feb 21 at 17pm 3 - Ponse o.pdfSubmitting an oxternal tool Available after Feb 21 at 17pm 3 - Ponse o.pdf
Submitting an oxternal tool Available after Feb 21 at 17pm 3 - Ponse o.pdf
ssuser58be4b1
 
subject- Management Information System Required- a) Elaborate the foll.pdf
subject- Management Information System Required- a) Elaborate the foll.pdfsubject- Management Information System Required- a) Elaborate the foll.pdf
subject- Management Information System Required- a) Elaborate the foll.pdf
ssuser58be4b1
 
subject- Management Information System Required- a) Define the followi.pdf
subject- Management Information System Required- a) Define the followi.pdfsubject- Management Information System Required- a) Define the followi.pdf
subject- Management Information System Required- a) Define the followi.pdf
ssuser58be4b1
 
Subject- Management Information System Required- a) Briefly explain ho.pdf
Subject- Management Information System Required- a) Briefly explain ho.pdfSubject- Management Information System Required- a) Briefly explain ho.pdf
Subject- Management Information System Required- a) Briefly explain ho.pdf
ssuser58be4b1
 
subject- business ethics i need answer for 1 page Lecture Ethical Awar.pdf
subject- business ethics i need answer for 1 page Lecture Ethical Awar.pdfsubject- business ethics i need answer for 1 page Lecture Ethical Awar.pdf
subject- business ethics i need answer for 1 page Lecture Ethical Awar.pdf
ssuser58be4b1
 
subject- information system subject- information system Give an exa.pdf
subject- information system  subject- information system   Give an exa.pdfsubject- information system  subject- information system   Give an exa.pdf
subject- information system subject- information system Give an exa.pdf
ssuser58be4b1
 
Subject -- Theory of Computation Please give the solution with detaile.pdf
Subject -- Theory of Computation Please give the solution with detaile.pdfSubject -- Theory of Computation Please give the solution with detaile.pdf
Subject -- Theory of Computation Please give the solution with detaile.pdf
ssuser58be4b1
 
subject -- theory of computation i) Convert the regular Expression in.pdf
subject -- theory of computation  i) Convert the regular Expression in.pdfsubject -- theory of computation  i) Convert the regular Expression in.pdf
subject -- theory of computation i) Convert the regular Expression in.pdf
ssuser58be4b1
 
StudentID StudentName MajorID MajorNameUsing the ENROLLMENT table prov.pdf
StudentID StudentName MajorID MajorNameUsing the ENROLLMENT table prov.pdfStudentID StudentName MajorID MajorNameUsing the ENROLLMENT table prov.pdf
StudentID StudentName MajorID MajorNameUsing the ENROLLMENT table prov.pdf
ssuser58be4b1
 
Structural Geology- For a given sense of slip (dextral-right or sinist.pdf
Structural Geology- For a given sense of slip (dextral-right or sinist.pdfStructural Geology- For a given sense of slip (dextral-right or sinist.pdf
Structural Geology- For a given sense of slip (dextral-right or sinist.pdf
ssuser58be4b1
 
Structurewhat chemical-Cytoplasmic Membrane DNA Proteins.pdf
Structurewhat chemical-Cytoplasmic Membrane DNA Proteins.pdfStructurewhat chemical-Cytoplasmic Membrane DNA Proteins.pdf
Structurewhat chemical-Cytoplasmic Membrane DNA Proteins.pdf
ssuser58be4b1
 
Stress at work- In a poll conducted by the General Social Survey- 70-.pdf
Stress at work- In a poll conducted by the General Social Survey- 70-.pdfStress at work- In a poll conducted by the General Social Survey- 70-.pdf
Stress at work- In a poll conducted by the General Social Survey- 70-.pdf
ssuser58be4b1
 

More from ssuser58be4b1 (20)

Summarize your findings from the Activity- Communications Skills Neces.pdf
Summarize your findings from the Activity- Communications Skills Neces.pdfSummarize your findings from the Activity- Communications Skills Neces.pdf
Summarize your findings from the Activity- Communications Skills Neces.pdf
 
Summarize LinkedIn's diversity practices and the impact on the company.pdf
Summarize LinkedIn's diversity practices and the impact on the company.pdfSummarize LinkedIn's diversity practices and the impact on the company.pdf
Summarize LinkedIn's diversity practices and the impact on the company.pdf
 
Sue Helins Applanoes wants to establish an essembly line to manulactur.pdf
Sue Helins Applanoes wants to establish an essembly line to manulactur.pdfSue Helins Applanoes wants to establish an essembly line to manulactur.pdf
Sue Helins Applanoes wants to establish an essembly line to manulactur.pdf
 
Subsurface Microbial Communities You have discovered a new anaerobic m.pdf
Subsurface Microbial Communities You have discovered a new anaerobic m.pdfSubsurface Microbial Communities You have discovered a new anaerobic m.pdf
Subsurface Microbial Communities You have discovered a new anaerobic m.pdf
 
Subsidiary roles specify the positions of particular units in relation.pdf
Subsidiary roles specify the positions of particular units in relation.pdfSubsidiary roles specify the positions of particular units in relation.pdf
Subsidiary roles specify the positions of particular units in relation.pdf
 
Sue likes candy and she had been very good about not eating any for a.pdf
Sue likes candy and she had been very good about not eating any for a.pdfSue likes candy and she had been very good about not eating any for a.pdf
Sue likes candy and she had been very good about not eating any for a.pdf
 
Subject- Probability analysis in civil engineering Problem 2- A slop.pdf
Subject- Probability analysis in civil engineering   Problem 2- A slop.pdfSubject- Probability analysis in civil engineering   Problem 2- A slop.pdf
Subject- Probability analysis in civil engineering Problem 2- A slop.pdf
 
Subjective- A 19-year-old female was brought to the trauma ED followin.pdf
Subjective- A 19-year-old female was brought to the trauma ED followin.pdfSubjective- A 19-year-old female was brought to the trauma ED followin.pdf
Subjective- A 19-year-old female was brought to the trauma ED followin.pdf
 
Submitting an oxternal tool Available after Feb 21 at 17pm 3 - Ponse o.pdf
Submitting an oxternal tool Available after Feb 21 at 17pm 3 - Ponse o.pdfSubmitting an oxternal tool Available after Feb 21 at 17pm 3 - Ponse o.pdf
Submitting an oxternal tool Available after Feb 21 at 17pm 3 - Ponse o.pdf
 
subject- Management Information System Required- a) Elaborate the foll.pdf
subject- Management Information System Required- a) Elaborate the foll.pdfsubject- Management Information System Required- a) Elaborate the foll.pdf
subject- Management Information System Required- a) Elaborate the foll.pdf
 
subject- Management Information System Required- a) Define the followi.pdf
subject- Management Information System Required- a) Define the followi.pdfsubject- Management Information System Required- a) Define the followi.pdf
subject- Management Information System Required- a) Define the followi.pdf
 
Subject- Management Information System Required- a) Briefly explain ho.pdf
Subject- Management Information System Required- a) Briefly explain ho.pdfSubject- Management Information System Required- a) Briefly explain ho.pdf
Subject- Management Information System Required- a) Briefly explain ho.pdf
 
subject- business ethics i need answer for 1 page Lecture Ethical Awar.pdf
subject- business ethics i need answer for 1 page Lecture Ethical Awar.pdfsubject- business ethics i need answer for 1 page Lecture Ethical Awar.pdf
subject- business ethics i need answer for 1 page Lecture Ethical Awar.pdf
 
subject- information system subject- information system Give an exa.pdf
subject- information system  subject- information system   Give an exa.pdfsubject- information system  subject- information system   Give an exa.pdf
subject- information system subject- information system Give an exa.pdf
 
Subject -- Theory of Computation Please give the solution with detaile.pdf
Subject -- Theory of Computation Please give the solution with detaile.pdfSubject -- Theory of Computation Please give the solution with detaile.pdf
Subject -- Theory of Computation Please give the solution with detaile.pdf
 
subject -- theory of computation i) Convert the regular Expression in.pdf
subject -- theory of computation  i) Convert the regular Expression in.pdfsubject -- theory of computation  i) Convert the regular Expression in.pdf
subject -- theory of computation i) Convert the regular Expression in.pdf
 
StudentID StudentName MajorID MajorNameUsing the ENROLLMENT table prov.pdf
StudentID StudentName MajorID MajorNameUsing the ENROLLMENT table prov.pdfStudentID StudentName MajorID MajorNameUsing the ENROLLMENT table prov.pdf
StudentID StudentName MajorID MajorNameUsing the ENROLLMENT table prov.pdf
 
Structural Geology- For a given sense of slip (dextral-right or sinist.pdf
Structural Geology- For a given sense of slip (dextral-right or sinist.pdfStructural Geology- For a given sense of slip (dextral-right or sinist.pdf
Structural Geology- For a given sense of slip (dextral-right or sinist.pdf
 
Structurewhat chemical-Cytoplasmic Membrane DNA Proteins.pdf
Structurewhat chemical-Cytoplasmic Membrane DNA Proteins.pdfStructurewhat chemical-Cytoplasmic Membrane DNA Proteins.pdf
Structurewhat chemical-Cytoplasmic Membrane DNA Proteins.pdf
 
Stress at work- In a poll conducted by the General Social Survey- 70-.pdf
Stress at work- In a poll conducted by the General Social Survey- 70-.pdfStress at work- In a poll conducted by the General Social Survey- 70-.pdf
Stress at work- In a poll conducted by the General Social Survey- 70-.pdf
 

Recently uploaded

DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 

Recently uploaded (20)

DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 

Suggestion- Use Netbeans to copy your last lab (Lab 07) to a new proje.pdf

  • 1. Suggestion: Use Netbeans to copy your last lab (Lab 07) to a new project called Lab08. Close Lab07. Work on the new Lab08 project then. The Student class A Student is a Person with 3 extra attributes, major, academic year and gpa. Attributes String major String academicYear double GPA Constructorsone constructor with no input parameterssince it doesn't have input parameters, use the default data below major - IST academicYear - Sr. GPA - 3.0 remember to call the constructor of the superclass with no parameters one constructor with all the parameters all three parameters from Student, one for each attribute since this is a subclass, remember to include also the parameters for the superclass Methods Get and Set methods (a requirement from encapsulation) public String toString() returns this object as a String, i.e., make each attribute a String, concatenate all strings and return as one String.
  • 2. toString() is a special method, you will learn more about it in the next lessons it needs to be public it needs to have @override notation (on the line above the method itself). Netbeans will suggest you do it. important : in the subclass toString, remember to make a call to the superclass toString so that the resulting String includes data from the subclass Student data from the superclass Person The Person Class Attributes String firstName String lastName String hometown String state Height height Constructorsone constructor with no input parameterssince it doesn't receive any input values, you need to use the default values below: firstName - No lastName - Name hometown - N/A state - N/A height - use the Height class no parameter constructor one constructor with three parameters firstName using the input parameter lastName using the input parameter
  • 3. height using the input parameter use the default values for hometown - N/A state - N/A one constructor with all (five) parameters one input parameter for each attribute Methods Get and Set methods (a requirement from encapsulation) important: You should start generating the default get and set methods using NetBeans automatic generator Then you will change getFirstName and setLastName as specified. getFirstName returns firstName with the first letter in upper case and the remaining of the String in lower case getLastName getHometown getState getHeight setFirstName setLastName updates lastName to be all caps (all upper case) remember to use setLastName in all constructors so the data (the updated lastName) is stored correctly setHometown setState setHeight
  • 4. public String toString() returns this object as a String, i.e., make each attribute a String, concatenate all strings and return as one String. toString() is a special method, you will learn more about it in the next lessons it needs to be public it needs to have @override notation (on the line above the method itself). Netbeans will suggest you do it. regarding state , the toString method will have a similar functionality as App had in the first lab. if the state attribute is "PA", display the object's attribute name plus the message "is from Pennsylvania" if the state attribute is not "PA", display the object's attribute name plus the message "is from out-of-state" In short, the toString() method returns all the data from each object as a String public void initials ( )this method gets firstName and lastName extract the initials of each one of them adds a "." period to each of them and uses "System.out.println" to display them as one String public void initials ( int option) this method overloads public void initials( ) . This means, it has the same name, but a different number of parameters. if the value of "option" is 1 gets firstName extract its initials adds a "." period to to a String adds the lastName to this String and uses "System.out.println" to display the String
  • 5. if the value of "option" is 2 adds firsName to a String gets lastName extract its initials adds a "." period to it adds it to the String and uses "System.out.println" to display the String The Height class uses encapsulation private attributes get and set methods for each attribute Attributes int feet int inches Constructorsone constructor with no input parameterssince it doesn't receive any input values, you need to use the default values below: feet - 5 feet - 6 one constructor with two parameters feet using the input parameter inches using the input parameter Methodspublic String toString() returns this object as a String, i.e., make each attribute a String, concatenate all strings and return as one String.
  • 6. toString() is a special method, you will learn more about it in the next lessons it needs to be public it needs to have @override notation (on the line above the method itself). Netbeans will suggest you do it. The Player Class ( now an abstract class ) Player is a Student with some extra attributes Uses encapsulation Player now is an abstract class because it has an abstract methodpublic abstract double getRatings( ); an abstract method is an incomplete method that has to be implemented by the subclasses. Attributes private int number private String sports private gamesPlayed Constructorsone constructor with no input parameterssince it doesn't receive any input values, you need to use the default values below: number - 0 sports - "none" gamesPlayed - 0 one constructor with all parameters one input parameter for each attribute Methods public String toString() returns this object as a String, i.e., make each attribute a String, concatenate all strings and return as one String.
  • 7. toString() is a special method, you will learn more about it in the next lessons it needs to be public it needs to have @override notation (on the line above the method itself). Netbeans will suggest you do it. Get and Set methods public int getNumber() public void setNumber(int number) public String getSports() public void setSports(String sports) public int getGamesPlayed() public void setGamesPlayed(int gamesPlayed) public abstract getRatings(); The SoccerPlayer Class SoccerPlayer is a Player with some extra attributes Uses encapsulation SoccerPlayer will implement the method getRatings (an abstract method from the superclass Player) toString has to include the result of getRatings() too Attributes private int goals private int yellowCards Constructorsone constructor with no input parameterssince it doesn't receive any input values, you need to use the default values below: goals - 0 yellowCards - 0
  • 8. one constructor with all (two) parameters one input parameter for each attribute Methods public String toString() returns this object as a String, i.e., make each attribute a String, concatenate all strings and return as one String. toString() is a special method, you will learn more about it in the next lessons it needs to be public it needs to have @override notation (on the line above the method itself). Netbeans will suggest you do it. should also include the value of getRatings() in the string Get and Set methods public int getGoals() public void setGoals(int goals) public int getYellowCards() public void setYellowCards(int yellowCards) public double getRatings()calculate and return the ratings using this formula:(double) (goals - yellowCards)/gamesPlayed the (double) is called casting, forcing the expression that comes afterwards to become a double. it is necessary to avoid getting 0 as a result because of the precision loss in the division by integers if goals or gamesPlayed is 0, return 0 (you need to do this test to avoid the application crashing in case one of them is 0) The FootballPlayer Class FootballPlayer is a Player with some extra attributes Uses encapsulation
  • 9. FootballPlayer will implement the method getRatings (an abstract method from the superclass Player) toString has to include the result of getRatings() too Attributes private int yards private int minutesPlayed Constructorsone constructor with no input parameterssince it doesn't receive any input values, you need to use the default values below: yards - 0 minutesPlayed - 0 one constructor with all (two) parameters one input parameter for each attribute Methods public String toString() returns this object as a String, i.e., make each attribute a String, concatenate all strings and return as one String. toString() is a special method, you will learn more about it in the next lessons it needs to be public it needs to have @override notation (on the line above the method itself). Netbeans will suggest you do it. should also include the value of getRatings() in the string Get and Set methods public int getYards() public void getYards(int yards) public int getMinutesPlayed()
  • 10. public void setMinutesPlayed(int minutesPlayed) public double getRatings()calculate and return the ratings using this formula:(double) ( (yards - minutesPlayed/10.0) ) /gamesPlayed be careful with the parenthesis to avoid getting 0 as a result the (double) is called casting, forcing the expression that comes afterward to become a double. it is necessary to avoid getting 0 as a result because of the precision loss in the division by integers use 10.0 instead of 10 to force Java to use more precision in the calculation if yards or gamesPlayed is 0, return 0 (you need to do this test to avoid the application crashing in case one of them is 0) The App class create a SoccerPlayer object called sp0 using the no-parameter constructor create a SoccerPlayer object called sp1 using the all-parameter constructor with the values goals - 5 yellowCards - 2 number - 7 sports - Soccer gamesPlayed - 10 major - Cyber academicYear - Sr. GPA - 3.5 firstName - jillian (see the different capitalization used to test the get/set methods) lastName - Jennings height 5 7 hometown - Montclair
  • 11. state - NJ create a FootballPlayer object called fp0 using the no-parameter create a FootballPlayer object called fp1 using the all-parameter constructor with the values yards - 60 minutesPlayed -30 number - 26 sports - Football gamesPlayed - 10 major - IST academicYear - Jr. GPA - 3.5 firstName - KEATON (see the different capitalization used to test the get/set methods) lastName - Ellis height 5 11 hometown - State College state - PA display all the data from each object Output Important you need to display each class toString( ) in a separate line. You can do this by adding a "n" at the end of the string. In the last toString you will also add a "==============================================================" String to close the line.
  • 12. I am request code for each section of the assignment please. Person { firstName=No, lastName=NAME, hometown=N/A, state=N/A, height=Height { feet = 5 , inches = 6 }} Student { major = I ST , academicYear = S r , GP A = 3.0 } Player { number = 0 , sports=none, gamesplayed = 0 } SoccerPlayer { goals = 0 , yellowCards = 0 , ratings = 0.0 } Person { firstName=Jillian, lastName=JENNINGS, hometown=Montclair, state=out-of-state, height=Height { feet=5, inches=7 }} Student { major = Cyber, academicYear = Sr , GPA = 3.5 } Player { number = 7 , sports=Soccer, gamesPlayed = 10 } Soccerplayer { goals = 5 , yellowCards = 2 , ratings = 0.3 } Person { firstName=No, lastName=NAME, hometown=N/A, state=N/A, height = Height { f feet = 5 , inches = 6 }} Student { major = I ST , academicYear = Sr , GPA = 3.0 } Player { number = 0 , sports=none, gamesPlayed = 0 } FootballPlayer { yards = 0 , minutes 1 layed = 0 , ratings = 0.0 } Person { firstName=Keaton, lastName=ELLIS, hometown=State College, state=Pennsylvania, height=Height { feet = 5 , inches=11 }} Student { major = I ST , academicYear = J r . , GPA = 3.5 } Player { number = 26 , sports = Football, gamesPlayed = 10 } Footballplayer { y ards = 60 , minutesplayed = 30 , ratings = 5.7 }