I study Java , I have never dealt with Kotlin , although I am planning in the near future. Now I Koltin trying to make out one pattern, an example of using the Android Architecture Components , which is written in Koltin 'e and ran into a syntax (it seems like a class), which I cannot understand.
Explain, pliz, what's here, what it is, (of the type MyDatabaseLiveData is a class that ... (what this type does after a colon), and LiveData<List<Article>>() is ...
With the override method, everything is clear here. Thank you very much!
class MyDatabaseLiveData : LiveData<List<SomeClass>>() { override fun onActive() { super.onActive() ... } } I dare to suggest that this syntax is of type extends in java. So?
class MyDatabaseLiveData extends LiveData<List<SomeClass>>() { @Override public void fun onActive() { super.onActive(); ... } }