THIS Is What the Out Keyword Is All About In Kotlin

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

I am in love with your shorts. Please talk about typealias

malikkissoum
Автор

man youre the only one who explains things simple. i was researching a lot on many keywords but did not understand it. now i do thanks very much

hi-rthc
Автор

Idk why they didn’t use the word “sub” instead of “out”

The designers of the language made this very simple concept SUPER CONFUSING with the variance and contra variance stuff

ChrisAthanas
Автор

I've read a ton of times this concept in books and in so many long and abstruse online medium articles and just after have done it, I always immediately have forgot what out key stands for. Thanks to your short it's now immediately clear what it does!

RinoSss
Автор

dude your stories are sick, completely underrated

allanaraujo
Автор

Wow! Thanks for sharing this wonderful tip, Phillip.
You explained it in a very simple way.

ashaluwalakazeem
Автор

It shouldn't be that easy man. You explained it like nothing. I have never thought it's easy like that. Thank you.

umuttekin
Автор

How you pick something complex and explain it in simple words is mind boggling

foreverrafs
Автор

You literally have the best shorts on youtube❤

Kanha
Автор

finally subscribed after watching 3 good shorts of kotlin.

shubham_kumar_mishra
Автор

thats just the tip off an iceberg when u use the out j=keyword you make the generic class covariant but now the class should use the type parameter only as the return type since covariant ypes are read only

nightfury
Автор

The out keword also tells the compiler that the functions of that class only returns the objects of type Car and don't take a Car object. Examples are List, StateFlow. There are no setter function in thoase classes.

PremThakur-xg
Автор

Kotlin! I always forget that this language exists

NoOne-evjn
Автор

bro, it is easy to talk about dogs, cars etc
let`s see the way your solve the REAL tasks with this knowledge ;)

АлександрГлебов-хя
Автор

Why compiler did not complain when mechanic object was created here val mechanic = CarMechanic<Audi>() before adding out keyword?

Rane-jh
Автор

Hi philipp.. i think it's time to make tutorial abour publishing apps on google play + could you please make full guied tutorial about generics like this video?

hossamqandel
Автор

so easy as usual, but I've simple Q I that means polymorphism not there by default?

moustafaelsaghier
Автор

If you've already declared that T is a Car cannot you just do CarMechanic<*> ?

rebok
Автор

is it the only reason to define type parameters with out??

hmsmurtaza
Автор

can you also make a video on in keyword.

sj
welcome to shbcf.ru