super keyword in java | uses of super keyword in java | super vs this keyword in java | with example
In this video, I explained and showed what is the use of super keyword in java and comparison with this keyword in java with examples. this keyword in java: https://youtu.be/VoKqseeyd9I OOPS in JAVA: https://youtu.be/fydfMhR7DKo Methods in JAVA: https://youtu.be/tu25oGiCXtc Constructors in java: https://youtu.be/De45-uD5AiY this keyword in java: https://youtu.be/VoKqseeyd9I inheritance(IS-A) in java: https://youtu.be/5LdNhEQkQW8 Association in java: https://youtu.be/Q1yeNaPXiYk Polymorphism in java(Compile time/overloading): https://youtu.be/bP_1Q8en2i8 Polymorphism in java(Runtime time/overriding)https://youtu.be/RDsNPFDPc-Y super keyword in java: https://youtu.be/LzeXXoMZ_7k Abstraction in java: https://youtu.be/ZQB_wxQR8G0 interface in java: https://youtu.be/l5mQxGsdXpI TimeStamps ============ 0:00 super keyword Definition 2:00 Practical programs 6:00 IS-A Relation Implementation 10:00 Why we need to use super 16:00 Acess parent class instance variable 19:40 Call/Acess parent class Methods 32:00 call/invoke parent class constructor 43:10 Real-Time Programmatic Example 53:00 Conclusion To Watch Java All Videos in an order: https://www.youtube.com/playlist?list=PLtkEQqNpowE3EQKHDNi8mDlOZJnPyNmlF Topics Required to understand super keyword in java ============================================== Inheritance(IS-A) in java: https://youtu.be/5LdNhEQkQW8 Runtime Polymorphism in java: https://youtu.be/RDsNPFDPc-Y Constructors in java: https://youtu.be/De45-uD5AiY this keyword in java: https://youtu.be/VoKqseeyd9I Association(HAS-A) in java: https://youtu.be/Q1yeNaPXiYk ================================================= super keyword in java -------------------------------- The super keyword in Java is a reference variable which is used to refer immediate parent class object. Whenever you create the instance of a subclass, an instance of parent class is created implicitly which is referred by a super reference variable. Usage of Java super Keyword ------------------------------------------------------------------ super can be used to refer immediate parent class instance variable. super can be used to invoke the immediate parent class method. super() can be used to invoke immediate parent class constructor. short definitions ----------------------- super - refer immediate parent class object. this - refer immediate current class object.
Download
0 formatsNo download links available.