Skip to content

Commit 2dcfe31

Browse files
author
Jorge Palacio
committed
Added comment about the use of value parameters
1 parent f649432 commit 2dcfe31

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/scala/stdlib/Classes.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ object Classes extends FlatSpec with Matchers with org.scalaexercises.definition
3131
*
3232
* The program defines an executable application `Classes` in form of a top-level singleton object with a `main` method. The `main` method creates a new `Point` and stores it in value `pt`.
3333
*
34+
* This also demonstrates the use of a value parameters in ClassWithValParameter(val name: String), which automatically creates an internal property (val name: String) in the class.
35+
*
3436
*/
3537
def classWithValParameterClasses(res0: String) {
3638
class ClassWithValParameter(val name: String)

0 commit comments

Comments
 (0)