Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Built-In Classes#

Sumit Rawal answered on May 23, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers


Built-In Classes#

0

Classes in Scala are broadly divided into two categories; built-in classes and user-defined classes. The focus of this chapter will be built-in classes, i.e., classes provided by Scala.

Do you remember when we discussed strings? All the methods we discussed were actually a part of Scala’s built-in String class. This is how strings differ from other data types. When we define a string, we are actually creating an instance/object of the String class. Methods such as length and toUpperCase are all members of the String class which can be used by an object of that class.

In the upcoming lessons, we will be looking at Scala’s collection library, which is made up of multiple classes.

In the next lesson, you will be introduced to the Scala collection library.

Popularity 1/10 Helpfulness 1/10 Language whatever
Source: Grepper
Link to this answer
Share Copy Link
Contributed on May 23 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.