Polymorphism in Java - Concept | Compile time and Runtime | Overloading and Overriding | Code Decode
ฝัง
- เผยแพร่เมื่อ 4 ส.ค. 2024
- 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:
openinapp.co/udemycourse
Course Description Video :
yt.openinapp.co/dmjvd
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 - วิทยาศาสตร์และเทคโนโลยี
Well u have created the best playlist of JAVA on youtube..Specially for interview preparation! Thank you so much
Thanks for nice words Disha
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.
Sure Amrit 👍👍thanks 🙂🙂
This video helped me understand the runtime polymorphism very nicely. Which used to confuse me since 1 year
Glad to hear that girl ❤️
Thanks a lot for all of your hard work , it helps me to crack different interview
Thanks Suman 👍🙂
Very clear explanation. Thank you for this video. 💚💚
Thanks 🙂👍👍
9:58 "chota diba can be sent to the bigger box"
btw very clear explanation. Thanks a lot for all of your hard work.
Kabhi kabhi Mother tongue nikal jati h excitement me 😄
Very good explanation. Thank You.
M glad it helps
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.
Please keep uploading such videos.
Sure 👍
Great explanation..Keep up the good work🎉🎉🎉
Thanks 😊
Thank you ma'am
You are welcome
Osm video
Can we get your notes?
Great🤗
Thanks
Nice explanation
Thanks :)
Welcome
@@CodeDecode what is method of achieving polymorphic behaviour
Answer depends on what type of polymorphism you require to implement.
If it's static then you can implement that using overloading
If you wanna achieve dynamic polymorphism then implement method overriding.
Hope this answers your question
1:25 i head 'matlab' i understood that!
all ur efforts goes vain bcz even though it is theory video adding example would have benefited the viewers much better
Well I don't think so. We do have video with examples. Please check that out before commenting. 👍
Links
th-cam.com/video/msnpR4xcflc/w-d-xo.html
Link for dynamic polymorphism example:
th-cam.com/video/4oEgPfu-4fY/w-d-xo.html