From the course: Learning Java 11

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Challenge: Student profile

Challenge: Student profile - Java Tutorial

From the course: Learning Java 11

Start my 1-month free trial

Challenge: Student profile

(upbeat music) - [Instructor] It's time to test your knowledge of classes and instances with a coding challenge. Be sure to use what you've learned so far about the different parts of a class, what a constructor does, how to create and use an instance, and more. For this challenge, you will represent a college student's profile with a Java class. You can get creative here about what you would like to represent, but the student profile should contain at least a first name, last name, GPA, expected year to graduate, and declared major. If you want to represent more attributes for the student profile, you are welcome to. The student profile class should also have at least one behavior in addition to attributes. You can add any behaviors you would like. But one behavior should increment the student's expected year to graduate by one. Sometimes a student can't get into the right classes in order to graduate on time and must graduate the following year. To accommodate this, we should have a…

Contents