Skip to content

Commit 31fb912

Browse files
authored
Merge pull request #59 from yojomapa/master
Added comment about the use of value parameters
2 parents 9e332b1 + 2dcfe31 commit 31fb912

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)