Saved Bookmarks
| 1. |
How To Implement Interfaces In Scala? |
|
Answer» As we know from Java BACKGROUND, we use interface to define contact. HOWEVER, there is no interface concept in Scala. EVEN, Scala doesn’t have interface keyword. Scala has a more powerful and flexible concept i.e. TRAIT for this purpose. As we know from Java background, we use interface to define contact. However, there is no interface concept in Scala. Even, Scala doesn’t have interface keyword. Scala has a more powerful and flexible concept i.e. trait for this purpose. |
|