84 11

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;"
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