by
84 11
1
6
3,317
0
Top 1% !
Popular
Famous
Tagged
Specified
OpenSource
Popularity: 4035th place
Created
Modified Jul 1, 2013

Published on:

JVMjre7
LanguageScala
LicenseMIT_X11
MacOS Version10.7.5
OSMac OS X

Case class constructor

Best practice on how to have a overloaded constructor for case classes
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1661/Case-class-constructor?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
Case Class Friend (michele:String, antonio: Int); Object Friend { public Friend (i:Int, s:String) = Friend (s,i) }
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus