Create a new Employee class using the case class syntax. For each employee has a first name, last name, and employee id. This Scala tutorial challenge sets up a problem to return a concatenation of the values.
- [Instructor] Are you ready for the last challenge?…In this challenge we're going to write Scala code.…We're going to create an employee case class.…Then inside the case class we're going to override…the toString method and we're going to create…and print a list of employees.…Each employee should have an id number,…a five digit integer.…The first name and a last name.…And I want you to print the name in this format.…Employee space id colon and list the five digit number.…
Then full name, colon, the employee first name,…followed by the employee last name.…So go ahead and give it a try.…Take a look at some of the examples from this section.…I'm estimating that this is going to take about 10 minutes.…Have fun!…
- Installing Scala
- Integrating with IDEs
- Creating variables
- Using special functions
- Basic types and operations
- Tuples, sets, maps, arrays, and lists
- Classes, fields, and methods
- Singleton objects
Skill Level Intermediate
1. Why Scala?
2. Scala Basics
3. More Scala Basics
4. Objects with Scala
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.