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 - Java Tutorial
From the course: Learning Java 11
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
Classes in Java4m 55s
-
Constructors in Java6m 50s
-
Creating a class in Java3m 57s
-
Creating instances in Java4m 57s
-
Instance methods vs. class methods2m 52s
-
Using instance methods in Java2m 47s
-
Instance and class variables in Java3m 56s
-
Review: Classes vs. instances1m 57s
-
Challenge: Student profile2m 1s
-
Sample solution: Student profile3m 26s
-
-