Polymorphism in Java - Concept | Compile time and Runtime | Overloading and Overriding | Code Decode

preview_player
Показать описание
Ability of an object to take
Many forms. Any object in java that passes IS-A test is polymorphic and since all objects extends Object class hence all object are polymorphic.

Udemy Course of Code Decode on Microservice k8s AWS CICD link:

Course Description Video :

To implement polymorphism in java we have 2 ways :
Static can be implemented by overloading
Dynamic can be implemented by Overriding

If child class has same method (with same signature) as defined in parent class is overriding
A process in which a call to overridden method is resolved at runtime rather than compile time.

Methods having same names but different Parameters is method overloading. Eg
Add(a,b) and Add(a,b,c)
Both methods add all arguments
----------------------------------------------------------------------------------------------------------------------------------------
#polymorphism #java #polymorphism
Рекомендации по теме
Комментарии
Автор

This video helped me understand the runtime polymorphism very nicely. Which used to confuse me since 1 year

WonderWhizTales
Автор

Well u have created the best playlist of JAVA on youtube..Specially for interview preparation! Thank you so much

dishav
Автор

Effective videos, all to the point; great for everyone whether fresher or someone experienced who wants to quickly revise,
much better than reading theory & 3 hour long videos available otherwise.
Just a suggestion, please explain method Signature just in the starting of video with example.
As you said mostly people confuse between types & return types.

amritvela
Автор

9:58 "chota diba can be sent to the bigger box"
btw very clear explanation. Thanks a lot for all of your hard work.

malikawais
Автор

Hello! One small thing about the type promotion: 8:20.
Number 5 can be promoted to bigger primitive type, e.g. long, or autoboxed to Integer. However it cannot be promoted and autoboxed at the same time. So 5 cannot be promoted to Long.

yulial
Автор

Great explanation..Keep up the good work🎉🎉🎉

sunainanavas
Автор

Thanks a lot for all of your hard work, it helps me to crack different interview

sumansaha
Автор

Very clear explanation. Thank you for this video. 💚💚

fatimaadreeta
Автор

1:25 i head 'matlab' i understood that!

nafisahmed
Автор

all ur efforts goes vain bcz even though it is theory video adding example would have benefited the viewers much better

svaduvan
join shbcf.ru