im so happy , that your on youtube. the way u teach is awesome . i love it. u turn me into alien from human. thank you so much
@JD-ot6br7 жыл бұрын
At 10:08, I do not clearly understand why you would create a reference of human, and then an object of Alien. What is the purpose of this?
@B-Billy4 жыл бұрын
This concept is know as polymorphism in OOP or 'Coding to Interface'. Try Googling it you will get so many examples.
@thanasisathanasi49655 жыл бұрын
Can you please help me understand what it means "var mayank : Human = Alien()" in 10:30 ? Does it mean that "mayank" is using the method defined in Human class and not the overriden method in Alien class? Thank you
@B-Billy4 жыл бұрын
This concept is know as polymorphism in OOP or 'Coding to Interface'. Try Googling it you will get so many examples.
@thanasisathanasi49654 жыл бұрын
@@B-Billy Thank you
@-BHarsha-kf5vx Жыл бұрын
this course is very helpful know the java concepts easy to catch points to understand this Kotlin simple syntax
@bhargav_k_jani53106 жыл бұрын
sir please tell me what is restrict inheritance
@jabuci7 жыл бұрын
You should've executed the last example (`var mayank : Human = Alien()`) to see the output. Will it print "Real Thinking" or "Virtual Thinking"?
@cosovic144 жыл бұрын
It'll still print out "Virtual Thinking" because it's still an Alien Object with the overridden think function. Only difference now is that the ": Human" specifies that the actual object is of Type Human. So for example if you created a mutableListOf, you can put the mayank object in there because it's type is Human.
@mdjahidulislam92054 жыл бұрын
Its a great thing for us(java dev)
@NIKHILSHARMA-gm3pl7 жыл бұрын
what is the difference between computer science , software engineering and information technology
@nicoqueijo7 жыл бұрын
Theory, implementation, maintenance/management
@NIKHILSHARMA-gm3pl7 жыл бұрын
Nicolas Queijo what is the difference between software and computer engineering
@-BHarsha-kf5vx Жыл бұрын
we are aliens try to deep dive into alien aspect
@devrajsinghania64807 жыл бұрын
DON'T CALL US ALIENS
@amsfuy7 жыл бұрын
I find this annoying, too :D
@neverzero97 жыл бұрын
So, you don't like. but, why u here ? If you don't really know why. This is for you. kzbin.info/www/bejne/p33SfHWXnLOjos0
@silver101886 жыл бұрын
ikr? for some reason I don't find it funny. Philosophy just makes people sound weird because everyone has his own. Like I'm Ali follower, but can't call random people hi Ali followers.