I am an fresher to Kotlin and getting hands on to it with prior experience of being in Java for around 8+ Years, One thing which looks different for me is on how Kotlin differentiates between return types and extends keyword (":"). Here is one such example
'> **fun getMyData(): LiveData<List<MyDataModel>>**'
In the above quote we say getMyData() will return List of MyDataModel class
Similarly when we define any Android activity or fragments we will use it in this way
> **class MyFragment : Fragment()**
In the above statement we are saying our class will extend Fragment.
Kindly clarify me why Kotlin uses same notation for extending and also for return types? Is there any advantages for the same depiction
Venkatraman K G