Welcome back. In this video, I am going to talk about Scala Classes.
Let's start with the most simple form of a Scala class.
A Scala class definition looks like this.
You start with the keyword class,
Give a name to the class and place the body of the class in a pair of curly braces.
You can create abstract, private or protected classes by using appropriate keywords.
But you can't use a public access modifier. That's not allowed.
A Scala class is public by default....
repo | techs | stars | weekly | forks | weekly |
---|---|---|---|---|---|
InterviewReady/system-design-resources | 11.2k | +542 | 1.3k | +51 | |
blaze-init/blaze | RustScalaJava | 470 | +45 | 54 | +3 |
apache/kafka | JavaScalaPython | 26k | +42 | 13.1k | +18 |
VictoriaMetrics/VictoriaMetrics | GoTypeScriptSCSS | 9.5k | +37 | 977 | +4 |
apache/spark | ScalaPythonJava | 36.9k | +32 | 27.8k | +23 |
vesoft-inc/nebula | C++GherkinPython | 9.5k | +27 | 1.1k | +5 |
apache/flink | JavaScalaPython | 22k | +25 | 12.8k | +4 |
delta-io/delta | HTMLScalaJava | 6.4k | +19 | 1.4k | +4 |
lichess-org/lila | ScalaTypeScriptSCSS | 13.6k | +17 | 2k | +4 |
line/armeria | JavaMDXTypeScript | 4.4k | +16 | 839 | +1 |