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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidMain program that parses the command line, creates aStudent, and prints a description of the student to standard out by invoking itstoStringmethod.says()All students say "This class is too much work"toString()Returns aStringthat 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 aStringthat describes thisStudent. -
main
Main program that parses the command line, creates aStudent, and prints a description of the student to standard out by invoking itstoStringmethod.
-