Sudhir Singh Khanger05/02/2018, 7:40 AM
What is the difference between declaring type as the exact class of name
private lateinit var movieAdapter: RecyclerView.Adapter<*> private lateinit var movieAdapter: MovieAdapter
? Also what does it mean by the asterix
? Which one is better?
edwardwongtl05/02/2018, 8:10 AM
, then any subtype of
can be assign to
. Declaring as
means you can only assign subtype of
into it. The
basically means any type.
gildor05/02/2018, 10:13 AM