Saved Bookmarks
| 1. |
What Are The Differences Between Case Class And Normal Class? |
|
Answer» Case class is also a class, however when we compare it with normal class, it gives the following extra features or benefits:
All these features are added by Scala Compiler at compile-time. It is not possible with normal class. Case class is also a class, however when we compare it with normal class, it gives the following extra features or benefits: All these features are added by Scala Compiler at compile-time. It is not possible with normal class. |
|