Package edu.pdx.cs410J.student
Class Student
java.lang.Object
edu.pdx.cs410J.lang.Animal
edu.pdx.cs410J.lang.Mammal
edu.pdx.cs410J.lang.Human
edu.pdx.cs410J.student.Student
This class is represents a
Student
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main program that parses the command line, creates aStudent
, and prints a description of the student to standard out by invoking itstoString
method.says()
All students say "This class is too much work"toString()
Returns aString
that describes thisStudent
.
-
Constructor Details
-
Student
Creates a newStudent
- Parameters:
name
- The student's nameclasses
- The names of the classes the student is taking. A student may take zero or more classes.gpa
- The student's grade point averagegender
- The student's gender ("male", "female", or "other", case insensitive)
-
-
Method Details
-
says
All students say "This class is too much work" -
toString
Returns aString
that describes thisStudent
. -
main
Main program that parses the command line, creates aStudent
, and prints a description of the student to standard out by invoking itstoString
method.
-